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 8b671c856b..87b87b5fc9 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 }