Use decrypted call invite events for VoIP pushes

This commit is contained in:
ismailgulek 2021-05-10 16:18:28 +03:00
parent e108447731
commit fd1f616b60
No known key found for this signature in database
GPG key ID: E96336D42D9470A9

View file

@ -586,7 +586,11 @@ class NotificationService: UNNotificationServiceExtension {
return
}
pushNotificationStore.lastCallInvite = event
if event.isEncrypted {
pushNotificationStore.lastCallInvite = event.clear
} else {
pushNotificationStore.lastCallInvite = event
}
ongoingVoIPPushRequests[event.eventId] = true