mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Update sdk to 1.0.78 (#3586)
* updated sdk * added cases * correct error tracking * right error label
This commit is contained in:
@@ -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)
|
||||
|
||||
+3
-1
@@ -20,7 +20,9 @@ struct EncryptedRoomTimelineView: View {
|
||||
case .sentBeforeWeJoined,
|
||||
.historicalMessage,
|
||||
.verificationViolation,
|
||||
.insecureDevice:
|
||||
.insecureDevice,
|
||||
.witheldBySender,
|
||||
.withheldForUnverifiedOrInsecureDevice:
|
||||
return \.block
|
||||
}
|
||||
default:
|
||||
|
||||
+2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user