mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
Update the SDK and handle the API breaks.
This commit is contained in:
@@ -59,8 +59,7 @@ struct NotificationContentBuilder {
|
||||
notificationItem: notificationItem,
|
||||
mediaProvider: mediaProvider)
|
||||
case .timeline(let event):
|
||||
guard let eventType = try? event.eventType(),
|
||||
case let .messageLike(content) = eventType else {
|
||||
guard case let .messageLike(messageContent) = try? event.content() else {
|
||||
processEmpty(¬ificationContent)
|
||||
return
|
||||
}
|
||||
@@ -69,7 +68,7 @@ struct NotificationContentBuilder {
|
||||
notificationItem: notificationItem,
|
||||
mediaProvider: mediaProvider)
|
||||
|
||||
switch content {
|
||||
switch messageContent {
|
||||
case .roomMessage(let messageType, _):
|
||||
await processRoomMessage(notificationContent: ¬ificationContent,
|
||||
notificationItem: notificationItem,
|
||||
|
||||
Reference in New Issue
Block a user