Bump the RustSDK to v25.07.04

This commit is contained in:
Stefan Ceriu
2025-07-04 13:21:54 +03:00
committed by Stefan Ceriu
parent 7ecd43b268
commit 52cdd29fe1
6 changed files with 100 additions and 23 deletions
+12 -6
View File
@@ -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)