mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Update the SDK. (#4517)
This commit is contained in:
@@ -70,7 +70,7 @@ struct NotificationContentBuilder {
|
||||
notificationContent.body = L10n.commonPollSummary(question)
|
||||
case .callInvite:
|
||||
notificationContent.body = L10n.commonUnsupportedCall
|
||||
case .callNotify:
|
||||
case .rtcNotification:
|
||||
notificationContent.body = L10n.notificationIncomingCall
|
||||
default:
|
||||
processEmpty(¬ificationContent)
|
||||
|
||||
@@ -124,8 +124,8 @@ class NotificationHandler {
|
||||
}
|
||||
|
||||
return .processedShouldDiscard
|
||||
case .callNotify(let notifyType):
|
||||
return await handleCallNotification(notifyType: notifyType,
|
||||
case .rtcNotification(let notificationType, _):
|
||||
return await handleCallNotification(notificationType: notificationType,
|
||||
rtcNotifyEventID: event.eventId(),
|
||||
timestamp: event.timestamp(),
|
||||
roomID: itemProxy.roomID,
|
||||
@@ -153,7 +153,7 @@ class NotificationHandler {
|
||||
|
||||
/// Handle incoming call notifications.
|
||||
/// - Returns: A boolean indicating whether the notification was handled and should now be discarded.
|
||||
private func handleCallNotification(notifyType: NotifyType,
|
||||
private func handleCallNotification(notificationType: RtcNotificationType,
|
||||
rtcNotifyEventID: String,
|
||||
timestamp: Timestamp,
|
||||
roomID: String,
|
||||
@@ -170,7 +170,7 @@ class NotificationHandler {
|
||||
// - the main app picks this up in `PKPushRegistry.didReceiveIncomingPushWith` and
|
||||
// `CXProvider.reportNewIncomingCall` to show the system UI and handle actions on it.
|
||||
// N.B. this flow works properly only when background processing capabilities are enabled
|
||||
guard notifyType == .ring else {
|
||||
guard notificationType == .ring else {
|
||||
MXLog.info("Non-ringing call notification, handling as push notification")
|
||||
return .shouldDisplay
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user