ruma-events: Add CancelCode variants for SAS verification

See: https://spec.matrix.org/v1.1/client-server-api/#verification-messages-specific-to-sas
This commit is contained in:
Julian Sparber 2022-01-12 21:48:06 +01:00 committed by GitHub
parent b3f7d0ed52
commit f8ba7f7957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,6 +121,14 @@ pub enum CancelCode {
#[ruma_enum(rename = "m.accepted")] #[ruma_enum(rename = "m.accepted")]
Accepted, Accepted,
/// The device receiving this error can ignore the verification request.
#[ruma_enum(rename = "m.mismatched_commitment")]
MismatchedCommitment,
/// The SAS did not match.
#[ruma_enum(rename = "m.mismatched_sas")]
MismatchedSas,
#[doc(hidden)] #[doc(hidden)]
_Custom(String), _Custom(String),
} }