Skip to content

Commit

Permalink
Merge pull request #114 from matrix-org/valere/expected_utd_codes_tru…
Browse files Browse the repository at this point in the history
…st_requirement

Feat: New expected UTD mode due to decryption TrustRequirement
  • Loading branch information
BillCarsonFr authored Oct 23, 2024
2 parents 2d7deb9 + 20df48e commit 9bd3c57
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ data class Error(
*/
ExpectedDueToMembership("ExpectedDueToMembership"),

/**
* E2EE domain error. Decryption failed for a message because it was
* sent by an insecure device
*/
ExpectedSentByInsecureDevice("ExpectedSentByInsecureDevice"),

/**
* E2EE domain error. Decryption failed for a message because the
* sender's verified identity has changed.
*/
ExpectedVerificationViolation("ExpectedVerificationViolation"),

/**
* E2EE domain error. Decryption failed for a message sent before the
* device logged in, and key backup is not enabled.
Expand Down
2 changes: 2 additions & 0 deletions schemas/Error.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
{"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": "ExpectedSentByInsecureDevice", "description": "E2EE domain error. Decryption failed for a message because it was sent by an insecure device"},
{"const": "ExpectedVerificationViolation", "description": "E2EE domain error. Decryption failed for a message because the sender's verified identity has changed."},
{"const": "RoomKeysWithheldForUnverifiedDevice", "description": "E2EE domain error. The sender withheld the keys for this message, due to the recipient device being unverified."},
{"const": "VoipUserHangup", "description": "VOIP domain error. The user hung up the call."},
{"const": "VoipIceFailed", "description": "VOIP domain error. ICE negotiation failed."},
Expand Down
4 changes: 4 additions & 0 deletions types/swift/Error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ 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 = "ExpectedDueToMembership"
/// E2EE domain error. Decryption failed for a message because it was sent by an insecure device
case ExpectedSentByInsecureDevice = "ExpectedSentByInsecureDevice"
/// E2EE domain error. Decryption failed for a message because the sender's verified identity has changed.
case ExpectedVerificationViolation = "ExpectedVerificationViolation"
/// E2EE domain error. Decryption failed for a message sent before the device logged in, and key backup is not enabled.
case HistoricalMessage = "HistoricalMessage"
/// E2EE domain error. The room key is known but is ratcheted (index > 0).
Expand Down

0 comments on commit 9bd3c57

Please sign in to comment.