fix "none" notification tone

pull/2/head
Michael Kirk 5 years ago
parent d5664dae4b
commit a342660943

@ -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 {

Loading…
Cancel
Save