SDK Bump to 1.0.80 and push notifications filtering (#1131)

* filtering nil notifications

* updated the sdk
This commit is contained in:
Mauro
2023-06-22 13:24:37 +02:00
committed by GitHub
parent 8b11a0a5ec
commit 8e8bb7a3e7
8 changed files with 23 additions and 13 deletions
@@ -72,7 +72,10 @@ class NotificationServiceExtension: UNNotificationServiceExtension {
do {
let userSession = try NSEUserSession(credentials: credentials)
let itemProxy = try await userSession.notificationItemProxy(roomID: roomId, eventID: eventId)
guard let itemProxy = try await userSession.notificationItemProxy(roomID: roomId, eventID: eventId) else {
MXLog.info("\(tag) no notification for this event")
return discard()
}
// After the first processing, update the modified content
modifiedContent = try await itemProxy.process(mediaProvider: nil)