Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: New expected UTD mode due to decryption TrustRequirement #114

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading