Update Matrix SDK to 1.1.23 (#1890)

This commit is contained in:
Alfonso Grillo
2023-10-13 14:31:22 +02:00
committed by GitHub
parent 293834cf94
commit f97a7c8cce
6 changed files with 10 additions and 11 deletions
+1 -1
View File
@@ -5990,7 +5990,7 @@
repositoryURL = "https://github.com/matrix-org/matrix-rust-components-swift";
requirement = {
kind = exactVersion;
version = 1.1.22;
version = 1.1.23;
};
};
821C67C9A7F8CC3FD41B28B4 /* XCRemoteSwiftPackageReference "emojibase-bindings" */ = {
@@ -120,8 +120,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/matrix-org/matrix-rust-components-swift",
"state" : {
"revision" : "9895254e2da70cac3140069d39b7d07f18ff54c0",
"version" : "1.1.22"
"revision" : "c5ca416942b4a4af82126ac2bf7f08ef7af5bb19",
"version" : "1.1.23"
}
},
{
@@ -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, _, _, _, _, _):
+1 -1
View File
@@ -46,7 +46,7 @@ packages:
# Element/Matrix dependencies
MatrixRustSDK:
url: https://github.com/matrix-org/matrix-rust-components-swift
exactVersion: 1.1.22
exactVersion: 1.1.23
# path: ../matrix-rust-sdk
Compound:
url: https://github.com/vector-im/compound-ios