From b4c1b26f9661a51a0bb99925ceb5012d01eb2a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 13 Aug 2020 16:45:12 +0200 Subject: [PATCH] crytpo: Store the SAS object in the machine if we're starting it. --- matrix_sdk_crypto/src/verification/machine.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/matrix_sdk_crypto/src/verification/machine.rs b/matrix_sdk_crypto/src/verification/machine.rs index d9ad17ab..a9085a2b 100644 --- a/matrix_sdk_crypto/src/verification/machine.rs +++ b/matrix_sdk_crypto/src/verification/machine.rs @@ -53,6 +53,9 @@ impl VerificationMachine { AnyToDeviceEventContent::KeyVerificationStart(content), ); + self.verifications + .insert(sas.flow_id().to_owned(), sas.clone()); + (sas, request) }