diff --git a/submodules/NotificationSoundSelectionUI/Sources/NotificationSoundSelection.swift b/submodules/NotificationSoundSelectionUI/Sources/NotificationSoundSelection.swift index 3acc8d5853..7efca2de73 100644 --- a/submodules/NotificationSoundSelectionUI/Sources/NotificationSoundSelection.swift +++ b/submodules/NotificationSoundSelectionUI/Sources/NotificationSoundSelection.swift @@ -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 } }