Skip to content

Commit

Permalink
Merge pull request #102 from matrix-org/valere/new_expected_utd_code
Browse files Browse the repository at this point in the history
Add a new Expected UTD cause for membership
  • Loading branch information
BillCarsonFr committed Apr 24, 2024
2 parents c979c94 + c1c15d0 commit e4e4989
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions schemas/Error.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."},
Expand Down
2 changes: 2 additions & 0 deletions types/swift/Error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit e4e4989

Please sign in to comment.