Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Fix incognito recording not displaying by awaiting discardRecording()
Murtaza Nasiraf5a88d0478d
diff --git a/static/js/modules/composables/audio.js b/static/js/modules/composables/audio.jsindex f8b15370..5ce665e7 100644--- a/static/js/modules/composables/audio.js+++ b/static/js/modules/composables/audio.js@@ -654,8 +654,11 @@ export function useAudio(state, utils) {console.warn('[Recording] Failed to clear IndexedDB session:', dbError);}- // Clear recording state- discardRecording();+ // Clear recording state (must await so currentView='upload' completes+ // before we override it with 'detail', otherwise the deferred+ // currentView='upload' fires after 'detail' and the view watcher+ // clears incognito data thinking we navigated away)+ await discardRecording();processingProgress.value = 100;processingMessage.value = 'Incognito recording ready!';