fix PN for incoming call on lower than iOS 14.5

This commit is contained in:
Ryan Zhao 2021-11-29 16:50:06 +11:00
parent 82400c6734
commit 63d85a481f
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}