fix "none" notification tone

This commit is contained in:
Michael Kirk 2019-03-13 11:11:20 -07:00
parent d5664dae4b
commit a342660943
1 changed files with 3 additions and 1 deletions

View File

@ -113,7 +113,9 @@ extension UserNotificationPresenterAdaptee: NotificationPresenterAdaptee {
content.categoryIdentifier = category.identifier
content.userInfo = userInfo
let isAppActive = UIApplication.shared.applicationState == .active
content.sound = sound?.notificationSound(isQuiet: isAppActive)
if let sound = sound, sound != OWSSound.none {
content.sound = sound.notificationSound(isQuiet: isAppActive)
}
var notificationIdentifier: String = UUID().uuidString
if let replacingIdentifier = replacingIdentifier {