mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Merge pull request #7242 from vector-im/nimau/7240_voice_message_temp_file_not_deleted
Fix temporary file deletion for a voice message (#7240)
This commit is contained in:
commit
daea28bf73
1 changed files with 2 additions and 1 deletions
|
@ -364,7 +364,8 @@ public class VoiceMessageController: NSObject, VoiceMessageToolbarViewDelegate,
|
|||
}
|
||||
|
||||
private func deleteRecordingAtURL(_ url: URL?) {
|
||||
guard let url = url, FileManager.default.fileExists(atPath: url.absoluteString) else {
|
||||
// Fix: use url.path instead of url.absoluteString when using FileManager otherwise the url seems to be percent encoded and the file is not found.
|
||||
guard let url = url, FileManager.default.fileExists(atPath: url.path) else {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue