Notification sound file reference revalidation

This commit is contained in:
Ali
2022-04-21 00:19:05 +04:00
parent d8a9913b40
commit 0ed361e34c
5 changed files with 66 additions and 4 deletions

View File

@@ -329,7 +329,7 @@ public func playSound(context: AccountContext, notificationSoundList: Notificati
deactivateImpl?()
})
currentPlayer?.play()
} else {
} else if !filePath.isEmpty {
if let url = getAppBundle().url(forResource: filePath, withExtension: "m4a") {
currentPlayer = AudioPlayerWrapper(url: url, completed: {
deactivateImpl?()