Update the SDK. (#4517)

This commit is contained in:
Doug
2025-09-17 15:43:38 +01:00
committed by GitHub
parent 27f4c25194
commit d571e27637
8 changed files with 147 additions and 11 deletions
+1 -1
View File
@@ -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(&notificationContent)
+4 -4
View File
@@ -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
}