mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Fix a bug where the room state wouldn't indicate when a call was in progress. (#3442)
* Fix breaking changes on decryption errors and sending failures. * Update SDK and analytics events. * Add extra UTD strings. --------- Co-authored-by: Stefan Ceriu <stefan.ceriu@gmail.com>
This commit is contained in:
+3
-1
@@ -15,7 +15,9 @@ struct EncryptedRoomTimelineItem: EventBasedTimelineItemProtocol, Equatable {
|
||||
}
|
||||
|
||||
enum UTDCause: Hashable {
|
||||
case membership
|
||||
case sentBeforeWeJoined
|
||||
case verificationViolation
|
||||
case insecureDevice
|
||||
case unknown
|
||||
}
|
||||
|
||||
|
||||
@@ -157,8 +157,14 @@ struct RoomTimelineItemFactory: RoomTimelineItemFactoryProtocol {
|
||||
case .unknown:
|
||||
encryptionType = .megolmV1AesSha2(sessionID: sessionID, cause: .unknown)
|
||||
errorLabel = L10n.commonWaitingForDecryptionKey
|
||||
case .membership:
|
||||
encryptionType = .megolmV1AesSha2(sessionID: sessionID, cause: .membership)
|
||||
case .verificationViolation:
|
||||
encryptionType = .megolmV1AesSha2(sessionID: sessionID, cause: .verificationViolation)
|
||||
errorLabel = L10n.commonUnableToDecryptVerificationViolation
|
||||
case .unsignedDevice, .unknownDevice:
|
||||
encryptionType = .megolmV1AesSha2(sessionID: sessionID, cause: .insecureDevice)
|
||||
errorLabel = L10n.commonUnableToDecryptInsecureDevice
|
||||
case .sentBeforeWeJoined:
|
||||
encryptionType = .megolmV1AesSha2(sessionID: sessionID, cause: .sentBeforeWeJoined)
|
||||
errorLabel = L10n.commonUnableToDecryptNoAccess
|
||||
}
|
||||
case .olmV1Curve25519AesSha2(let senderKey):
|
||||
|
||||
Reference in New Issue
Block a user