Show ElementCalls in the system Recents list and allow deep linking back into a call from there

This commit is contained in:
Stefan Ceriu
2024-05-27 12:49:24 +03:00
committed by Stefan Ceriu
parent 16fc7caa62
commit f6c476eeca
10 changed files with 43 additions and 18 deletions
@@ -206,12 +206,8 @@ class NotificationServiceExtension: UNNotificationServiceExtension {
return true
}
var payload = [ElementCallServiceNotificationKey.roomID.rawValue: itemProxy.roomID,
ElementCallServiceNotificationKey.roomDisplayName.rawValue: itemProxy.roomDisplayName,
ElementCallServiceNotificationKey.senderID.rawValue: itemProxy.senderID]
if let senderDisplayName = itemProxy.senderDisplayName {
payload[ElementCallServiceNotificationKey.senderDisplayName.rawValue] = senderDisplayName
}
let payload = [ElementCallServiceNotificationKey.roomID.rawValue: itemProxy.roomID,
ElementCallServiceNotificationKey.roomDisplayName.rawValue: itemProxy.roomDisplayName]
do {
try await CXProvider.reportNewIncomingVoIPPushPayload(payload)