From 321e56cff8518e892321a9ec67f03f32017ccd72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 5 Sep 2022 13:34:13 +0200 Subject: [PATCH] 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. --- examples/emoji_verification/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/emoji_verification/src/main.rs b/examples/emoji_verification/src/main.rs index d53c401b2..08e979aa3 100644 --- a/examples/emoji_verification/src/main.rs +++ b/examples/emoji_verification/src/main.rs @@ -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())