From 63d85a481f1a816dcdf8c95004664dbd507cbd5a Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Mon, 29 Nov 2021 16:50:06 +1100 Subject: [PATCH] fix PN for incoming call on lower than iOS 14.5 --- .../NotificationServiceExtension.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SessionNotificationServiceExtension/NotificationServiceExtension.swift b/SessionNotificationServiceExtension/NotificationServiceExtension.swift index 744193529..e7a9d42b0 100644 --- a/SessionNotificationServiceExtension/NotificationServiceExtension.swift +++ b/SessionNotificationServiceExtension/NotificationServiceExtension.swift @@ -225,7 +225,7 @@ public final class NotificationServiceExtension : UNNotificationServiceExtension let payload: JSON = ["uuid": uuid, "caller": caller, "timestamp": timestamp] CXProvider.reportNewIncomingVoIPPushPayload(payload) { error in if let error = error { - self.contentHandler!(content) + self.handleSuccess(for: content) owsFailDebug("Failed to notify main app of call message: \(error)") } else { self.completeSilenty() @@ -234,7 +234,7 @@ public final class NotificationServiceExtension : UNNotificationServiceExtension } } } else { - self.contentHandler!(content) + self.handleSuccess(for: content) } }