Skip to content

Commit 4372048

Browse files
authored
Update SDK 1.0.77 (#3578)
* update SDK * added new cause case * added historical message
1 parent c7afde3 commit 4372048

File tree

7 files changed

+11
-4
lines changed

7 files changed

+11
-4
lines changed

ElementX.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8215,7 +8215,7 @@
82158215
repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift";
82168216
requirement = {
82178217
kind = exactVersion;
8218-
version = 1.0.76;
8218+
version = 1.0.77;
82198219
};
82208220
};
82218221
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {

ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ElementX/Sources/FlowCoordinators/UserSessionFlowCoordinator.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ class UserSessionFlowCoordinator: FlowCoordinatorProtocol {
393393
analytics.trackError(context: nil, domain: .E2EE, name: .ExpectedVerificationViolation, timeToDecryptMillis: timeToDecryptMs)
394394
case .sentBeforeWeJoined:
395395
analytics.trackError(context: nil, domain: .E2EE, name: .ExpectedDueToMembership, timeToDecryptMillis: timeToDecryptMs)
396+
case .historicalMessage:
397+
analytics.trackError(context: nil, domain: .E2EE, name: .HistoricalMessage, timeToDecryptMillis: timeToDecryptMs)
396398
}
397399
}
398400
.store(in: &cancellables)

ElementX/Sources/Screens/Timeline/View/TimelineItemViews/EncryptedRoomTimelineView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ struct EncryptedRoomTimelineView: View {
1818
case .unknown:
1919
return \.time
2020
case .sentBeforeWeJoined,
21+
.historicalMessage,
2122
.verificationViolation,
2223
.insecureDevice:
2324
return \.block

ElementX/Sources/Services/Timeline/TimelineItems/Items/Other/EncryptedRoomTimelineItem.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ struct EncryptedRoomTimelineItem: EventBasedTimelineItemProtocol, Equatable {
1919
case verificationViolation
2020
case insecureDevice
2121
case unknown
22+
case historicalMessage
2223
}
2324

2425
let id: TimelineItemIdentifier

ElementX/Sources/Services/Timeline/TimelineItems/RoomTimelineItemFactory.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ struct RoomTimelineItemFactory: RoomTimelineItemFactoryProtocol {
153153
case .sentBeforeWeJoined:
154154
encryptionType = .megolmV1AesSha2(sessionID: sessionID, cause: .sentBeforeWeJoined)
155155
errorLabel = L10n.commonUnableToDecryptNoAccess
156+
case .historicalMessage:
157+
encryptionType = .megolmV1AesSha2(sessionID: sessionID, cause: .historicalMessage)
158+
errorLabel = L10n.commonUnableToDecryptNoAccess
156159
}
157160
case .olmV1Curve25519AesSha2(let senderKey):
158161
encryptionType = .olmV1Curve25519AesSha2(senderKey: senderKey)

project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ packages:
6161
# Element/Matrix dependencies
6262
MatrixRustSDK:
6363
url: https://github.com/element-hq/matrix-rust-components-swift
64-
exactVersion: 1.0.76
64+
exactVersion: 1.0.77
6565
# path: ../matrix-rust-sdk
6666
Compound:
6767
url: https://github.com/element-hq/compound-ios

0 commit comments

Comments
 (0)