Update sdk to 1.0.78 (#3586)

* updated sdk

* added cases

* correct error tracking

* right error label
This commit is contained in:
Mauro 2024-12-05 10:55:49 +01:00 committed by GitHub
parent ab2152096d
commit 7cf88a16bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 19 additions and 5 deletions

View File

@ -8239,7 +8239,7 @@
repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift";
requirement = {
kind = exactVersion;
version = 1.0.77;
version = 1.0.78;
};
};
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {

View File

@ -149,8 +149,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/matrix-rust-components-swift",
"state" : {
"revision" : "4e01a9482cfefae4f06c6f3a5a33d21a2bf73d84",
"version" : "1.0.77"
"revision" : "b4705d95bd049f1c7d93cff38e2c2ac2d892f23d",
"version" : "1.0.78"
}
},
{

View File

@ -395,6 +395,10 @@ class UserSessionFlowCoordinator: FlowCoordinatorProtocol {
analytics.trackError(context: nil, domain: .E2EE, name: .ExpectedDueToMembership, timeToDecryptMillis: timeToDecryptMs)
case .historicalMessage:
analytics.trackError(context: nil, domain: .E2EE, name: .HistoricalMessage, timeToDecryptMillis: timeToDecryptMs)
case .withheldForUnverifiedOrInsecureDevice:
analytics.trackError(context: nil, domain: .E2EE, name: .RoomKeysWithheldForUnverifiedDevice, timeToDecryptMillis: timeToDecryptMs)
case .withheldBySender:
analytics.trackError(context: nil, domain: .E2EE, name: .OlmKeysNotSentError, timeToDecryptMillis: timeToDecryptMs)
}
}
.store(in: &cancellables)

View File

@ -20,7 +20,9 @@ struct EncryptedRoomTimelineView: View {
case .sentBeforeWeJoined,
.historicalMessage,
.verificationViolation,
.insecureDevice:
.insecureDevice,
.witheldBySender,
.withheldForUnverifiedOrInsecureDevice:
return \.block
}
default:

View File

@ -20,6 +20,8 @@ struct EncryptedRoomTimelineItem: EventBasedTimelineItemProtocol, Equatable {
case insecureDevice
case unknown
case historicalMessage
case witheldBySender
case withheldForUnverifiedOrInsecureDevice
}
let id: TimelineItemIdentifier

View File

@ -156,6 +156,12 @@ struct RoomTimelineItemFactory: RoomTimelineItemFactoryProtocol {
case .historicalMessage:
encryptionType = .megolmV1AesSha2(sessionID: sessionID, cause: .historicalMessage)
errorLabel = L10n.timelineDecryptionFailureHistoricalEventNoKeyBackup
case .withheldForUnverifiedOrInsecureDevice:
encryptionType = .megolmV1AesSha2(sessionID: sessionID, cause: .withheldForUnverifiedOrInsecureDevice)
errorLabel = L10n.timelineDecryptionFailureWithheldUnverified
case .withheldBySender:
encryptionType = .megolmV1AesSha2(sessionID: sessionID, cause: .witheldBySender)
errorLabel = L10n.timelineDecryptionFailureUnableToDecrypt
}
case .olmV1Curve25519AesSha2(let senderKey):
encryptionType = .olmV1Curve25519AesSha2(senderKey: senderKey)

View File

@ -61,7 +61,7 @@ packages:
# Element/Matrix dependencies
MatrixRustSDK:
url: https://github.com/element-hq/matrix-rust-components-swift
exactVersion: 1.0.77
exactVersion: 1.0.78
# path: ../matrix-rust-sdk
Compound:
url: https://github.com/element-hq/compound-ios