From 0f70d9fc0553240f8300eb6cba52d6429568e3d6 Mon Sep 17 00:00:00 2001 From: Beingpax Date: Fri, 2 May 2025 09:21:39 +0545 Subject: [PATCH] Fix temporary file deletion timing --- VoiceInk/Whisper/WhisperState.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/VoiceInk/Whisper/WhisperState.swift b/VoiceInk/Whisper/WhisperState.swift index b8e321e..c37eef3 100644 --- a/VoiceInk/Whisper/WhisperState.swift +++ b/VoiceInk/Whisper/WhisperState.swift @@ -395,8 +395,6 @@ class WhisperState: NSObject, ObservableObject, AVAudioRecorderDelegate { let fileName = "\(UUID().uuidString).wav" let permanentURL = recordingsDirectory.appendingPathComponent(fileName) try FileManager.default.copyItem(at: tempURL, to: permanentURL) - - try? FileManager.default.removeItem(at: tempURL) return permanentURL } }