diff --git a/kotlin/lib/src/main/java/im/vector/app/features/analytics/plan/Error.kt b/kotlin/lib/src/main/java/im/vector/app/features/analytics/plan/Error.kt index 98553b9..868e89d 100644 --- a/kotlin/lib/src/main/java/im/vector/app/features/analytics/plan/Error.kt +++ b/kotlin/lib/src/main/java/im/vector/app/features/analytics/plan/Error.kt @@ -78,6 +78,13 @@ data class Error( enum class Name { + /** + * E2EE domain error. Decryption failed for a message sent before you + * were in the room (shared history visibility and support for sharing + * past keys is not available/supported). + */ + ExpectedDueToMembership, + /** * E2EE domain error. Decryption failed for a message sent before the * device logged in, and key backup is not enabled. diff --git a/schemas/Error.json b/schemas/Error.json index f0d2c7e..ddc0b6f 100644 --- a/schemas/Error.json +++ b/schemas/Error.json @@ -21,6 +21,7 @@ {"const": "OlmUnspecifiedError", "description": "E2EE domain error. Any other decryption error (missing field, format errors...)."}, {"const": "UnknownError", "description": "E2EE domain error. Decryption failed due to unknown error."}, {"const": "HistoricalMessage", "description": "E2EE domain error. Decryption failed for a message sent before the device logged in, and key backup is not enabled."}, + {"const": "ExpectedDueToMembership", "description": "E2EE domain error. Decryption failed for a message sent before you were in the room (shared history visibility and support for sharing past keys is not available/supported)."}, {"const": "VoipUserHangup", "description": "VOIP domain error. The user hung up the call."}, {"const": "VoipIceFailed", "description": "VOIP domain error. ICE negotiation failed."}, {"const": "VoipInviteTimeout", "description": "VOIP domain error. The call invite timed out."}, diff --git a/types/swift/Error.swift b/types/swift/Error.swift index a0700b8..8710643 100644 --- a/types/swift/Error.swift +++ b/types/swift/Error.swift @@ -66,6 +66,8 @@ extension AnalyticsEvent { } public enum Name: String { + /// E2EE domain error. Decryption failed for a message sent before you were in the room (shared history visibility and support for sharing past keys is not available/supported). + case ExpectedDueToMembership /// E2EE domain error. Decryption failed for a message sent before the device logged in, and key backup is not enabled. case HistoricalMessage /// E2EE domain error. The room key is known but is ratcheted (index > 0).