mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +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,
|
||||
|
||||
@@ -98,9 +98,9 @@ class NotificationHandler {
|
||||
return .shouldDisplay
|
||||
}
|
||||
|
||||
switch try? event.eventType() {
|
||||
case .messageLike(let content):
|
||||
switch content {
|
||||
switch try? event.content() {
|
||||
case .messageLike(let messageContent):
|
||||
switch messageContent {
|
||||
case .poll,
|
||||
.roomEncrypted,
|
||||
.sticker:
|
||||
|
||||
Reference in New Issue
Block a user