mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Update sdk to 1.0.78 (#3586)
* updated sdk * added cases * correct error tracking * right error label
This commit is contained in:
+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