|
|
@ -139,7 +139,11 @@ public class NotificationPresenter: NSObject, NotificationsProtocol {
|
|
|
|
switch notification.object {
|
|
|
|
switch notification.object {
|
|
|
|
case let incomingMessage as TSIncomingMessage:
|
|
|
|
case let incomingMessage as TSIncomingMessage:
|
|
|
|
Logger.debug("canceled notification for message: \(incomingMessage)")
|
|
|
|
Logger.debug("canceled notification for message: \(incomingMessage)")
|
|
|
|
|
|
|
|
if let identifier = incomingMessage.notificationIdentifier {
|
|
|
|
|
|
|
|
cancelNotification(identifier)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
cancelNotifications(threadId: incomingMessage.uniqueThreadId)
|
|
|
|
cancelNotifications(threadId: incomingMessage.uniqueThreadId)
|
|
|
|
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
break
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|