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
7 changed files with 19 additions and 5 deletions
@@ -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)
@@ -20,7 +20,9 @@ struct EncryptedRoomTimelineView: View {
case .sentBeforeWeJoined,
.historicalMessage,
.verificationViolation,
.insecureDevice:
.insecureDevice,
.witheldBySender,
.withheldForUnverifiedOrInsecureDevice:
return \.block
}
default:
@@ -20,6 +20,8 @@ struct EncryptedRoomTimelineItem: EventBasedTimelineItemProtocol, Equatable {
case insecureDevice
case unknown
case historicalMessage
case witheldBySender
case withheldForUnverifiedOrInsecureDevice
}
let id: TimelineItemIdentifier
@@ -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)