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:
Damir Jelić
2022-09-05 13:34:13 +02:00
parent a640312503
commit 321e56cff8

View File

@@ -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())