mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Update Matrix SDK to 1.1.23 (#1890)
This commit is contained in:
@@ -46,10 +46,7 @@ struct RoomEventStringBuilder {
|
||||
fatalError("Invalid message timeline item: \(eventItemProxy)")
|
||||
}
|
||||
|
||||
guard let messageType = messageContent.msgtype() else {
|
||||
return prefix(messageContent.body(), with: senderDisplayName)
|
||||
}
|
||||
|
||||
let messageType = messageContent.msgtype()
|
||||
return messageEventStringBuilder.buildAttributedString(for: messageType, senderDisplayName: senderDisplayName, prefixWithSenderName: true)
|
||||
case .state(let stateKey, let state):
|
||||
return stateEventStringBuilder
|
||||
|
||||
@@ -54,8 +54,10 @@ struct RoomMessageEventStringBuilder {
|
||||
} else {
|
||||
message = content.body
|
||||
}
|
||||
case .other(_, let body):
|
||||
message = body
|
||||
}
|
||||
|
||||
|
||||
if prefixWithSenderName {
|
||||
return prefix(message, with: senderDisplayName)
|
||||
} else {
|
||||
|
||||
@@ -105,7 +105,7 @@ struct RoomTimelineItemFactory: RoomTimelineItemFactoryProtocol {
|
||||
}
|
||||
case .location(let content):
|
||||
return buildLocationTimelineItem(for: eventItemProxy, messageTimelineItem, content, isOutgoing, isThreaded)
|
||||
case .none:
|
||||
case .other:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
@@ -653,7 +653,7 @@ struct RoomTimelineItemFactory: RoomTimelineItemFactoryProtocol {
|
||||
replyContent = .video(buildVideoTimelineItemContent(content))
|
||||
case .location(let content):
|
||||
replyContent = .location(buildLocationTimelineItemContent(content))
|
||||
case .none:
|
||||
case .other, .none:
|
||||
replyContent = .text(.init(body: L10n.commonUnsupportedEvent))
|
||||
}
|
||||
case .poll(let question, _, _, _, _, _):
|
||||
|
||||
Reference in New Issue
Block a user