Hint as mp3

This commit is contained in:
Ali
2022-04-20 21:29:47 +04:00
parent 999db0b76a
commit b6530a9a20

View File

@@ -262,7 +262,7 @@ private final class AudioPlayerWrapper: NSObject, AVAudioPlayerDelegate {
super.init()
self.player = try? AVAudioPlayer(contentsOf: url, fileTypeHint: "m4a")
self.player = try? AVAudioPlayer(contentsOf: url, fileTypeHint: "mp3")
self.player?.delegate = self
}
@@ -304,7 +304,7 @@ public func fileNameForNotificationSound(account: Account, notificationSoundList
}
for sound in notificationSoundList.sounds {
if sound.file.fileId.id == fileId {
if let path = account.postbox.mediaBox.completedResourcePath(sound.file.resource, pathExtension: "mp3") {
if let path = account.postbox.mediaBox.completedResourcePath(sound.file.resource, pathExtension: nil) {
return path
}
}