mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 13:40:55 -04:00
fix(examples): Listen to the done event in the emoji verification example
Nowadays all verifications send a done event, so this is the safer option.
This commit is contained in:
@@ -117,7 +117,7 @@ async fn sync(client: Client) -> matrix_sdk::Result<()> {
|
||||
}
|
||||
}
|
||||
|
||||
AnyToDeviceEvent::KeyVerificationMac(e) => {
|
||||
AnyToDeviceEvent::KeyVerificationDone(e) => {
|
||||
if let Some(Verification::SasV1(sas)) = client
|
||||
.encryption()
|
||||
.get_verification(&e.sender, e.content.transaction_id.as_str())
|
||||
|
||||
Reference in New Issue
Block a user