From 7e1998174ca57efa28a54e5accf2b1e413d23047 Mon Sep 17 00:00:00 2001 From: davotoula Date: Tue, 16 Dec 2025 09:36:24 +0100 Subject: [PATCH] Delete any existing temp file before replacing --- .../amethyst/ui/screen/loggedIn/home/ShortNotePostViewModel.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/home/ShortNotePostViewModel.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/home/ShortNotePostViewModel.kt index 8b671c856..87b87b5fc 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/home/ShortNotePostViewModel.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/home/ShortNotePostViewModel.kt @@ -923,6 +923,8 @@ open class ShortNotePostViewModel : } fun selectVoiceRecording(recording: RecordingResult) { + // Delete any existing temp file before replacing + deleteVoiceLocalFile() voiceRecording = recording voiceLocalFile = recording.file }