From a34266094357ffaef2760a7608786e991f6b848d Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Wed, 13 Mar 2019 11:11:20 -0700 Subject: [PATCH] fix "none" notification tone --- .../Notifications/UserNotificationsAdaptee.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Signal/src/UserInterface/Notifications/UserNotificationsAdaptee.swift b/Signal/src/UserInterface/Notifications/UserNotificationsAdaptee.swift index 412ed633c..215d17ab1 100644 --- a/Signal/src/UserInterface/Notifications/UserNotificationsAdaptee.swift +++ b/Signal/src/UserInterface/Notifications/UserNotificationsAdaptee.swift @@ -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 {