mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Bump the RustSDK to v25.07.04
This commit is contained in:
committed by
Stefan Ceriu
parent
7ecd43b268
commit
52cdd29fe1
@@ -82,15 +82,21 @@ final class NSEUserSession {
|
||||
|
||||
func notificationItemProxy(roomID: String, eventID: String) async -> NotificationItemProxyProtocol? {
|
||||
do {
|
||||
let notification = try await notificationClient.getNotification(roomId: roomID, eventId: eventID)
|
||||
let notificationStatus = try await notificationClient.getNotification(roomId: roomID, eventId: eventID)
|
||||
|
||||
guard let notification else {
|
||||
switch notificationStatus {
|
||||
case .event(let notification):
|
||||
return NotificationItemProxy(notificationItem: notification,
|
||||
eventID: eventID,
|
||||
receiverID: userID,
|
||||
roomID: roomID)
|
||||
case .eventNotFound:
|
||||
MXLog.error("Notification event not found - roomID: \(roomID) eventID: \(eventID)")
|
||||
return nil
|
||||
case .eventFilteredOut:
|
||||
MXLog.warning("Notification event filtered out - roomID: \(roomID) eventID: \(eventID)")
|
||||
return nil
|
||||
}
|
||||
return NotificationItemProxy(notificationItem: notification,
|
||||
eventID: eventID,
|
||||
receiverID: userID,
|
||||
roomID: roomID)
|
||||
} catch {
|
||||
MXLog.error("Could not get notification's content creating an empty notification instead, error: \(error)")
|
||||
return EmptyNotificationItemProxy(eventID: eventID, roomID: roomID, receiverID: userID)
|
||||
|
||||
Reference in New Issue
Block a user