Support mp4 audio file format

This commit is contained in:
yostyle
2022-10-19 16:36:31 +02:00
parent 1cf8eee842
commit 62bd046af8
2 changed files with 8 additions and 2 deletions
@@ -208,7 +208,8 @@ class VoiceMessageAttachmentCacheManager {
return
}
let newURL = temporaryFilesFolderURL.appendingPathComponent(identifier).appendingPathExtension("m4a")
let fileExtension = filePath.hasSuffix(".mp4") ? "mp4" : "m4a"
let newURL = temporaryFilesFolderURL.appendingPathComponent(identifier).appendingPathExtension(fileExtension)
let conversionCompletion: (Result<Void, VoiceMessageAudioConverterError>) -> Void = { result in
self.workQueue.async {