diff --git a/src/lib/components/chat/ChatTabs/VoiceNote.svelte b/src/lib/components/chat/ChatTabs/VoiceNote.svelte index a834c7982e..a891c4883c 100644 --- a/src/lib/components/chat/ChatTabs/VoiceNote.svelte +++ b/src/lib/components/chat/ChatTabs/VoiceNote.svelte @@ -243,8 +243,9 @@ ); if (!note?.path) throw new Error(); draft = undefined; - onclose(); + // onsaved reads the target that onclose clears onsaved(note.path); + onclose(); } catch { error = $i18n.t('Could not save the voice note. Retry or download the recording.'); } finally {