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

Add a new Expected UTD cause for membership #102

Merged
merged 2 commits into from
Apr 24, 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 @@ -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
Loading