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:
parent
b3f7d0ed52
commit
f8ba7f7957
@ -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),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user