diff --git a/matrix_sdk_crypto/src/identities/device.rs b/matrix_sdk_crypto/src/identities/device.rs index 79884c84..9b432e77 100644 --- a/matrix_sdk_crypto/src/identities/device.rs +++ b/matrix_sdk_crypto/src/identities/device.rs @@ -43,7 +43,7 @@ use crate::{ olm::{InboundGroupSession, PrivateCrossSigningIdentity, Session, Utility}, store::{Changes, CryptoStore, DeviceChanges, Result as StoreResult}, verification::VerificationMachine, - OutgoingVerificationRequest, Sas, ToDeviceRequest, VerificationRequest, + OutgoingVerificationRequest, Sas, ToDeviceRequest, }; #[cfg(test)] use crate::{OlmMachine, ReadOnlyAccount}; diff --git a/matrix_sdk_crypto/src/verification/machine.rs b/matrix_sdk_crypto/src/verification/machine.rs index 8d0c4858..fbab484f 100644 --- a/matrix_sdk_crypto/src/verification/machine.rs +++ b/matrix_sdk_crypto/src/verification/machine.rs @@ -142,6 +142,7 @@ impl VerificationMachine { identity, None, true, + None, ); let request = match content { @@ -565,6 +566,7 @@ mod test { None, None, true, + None, ); machine diff --git a/matrix_sdk_crypto/src/verification/requests.rs b/matrix_sdk_crypto/src/verification/requests.rs index 450dfeb0..2c78604c 100644 --- a/matrix_sdk_crypto/src/verification/requests.rs +++ b/matrix_sdk_crypto/src/verification/requests.rs @@ -1172,6 +1172,7 @@ impl RequestState { other_identity, Some(t.to_owned()), we_started, + Some(request_handle), ); (sas, content) } diff --git a/matrix_sdk_crypto/src/verification/sas/mod.rs b/matrix_sdk_crypto/src/verification/sas/mod.rs index c0cb4fe4..fd1e5e24 100644 --- a/matrix_sdk_crypto/src/verification/sas/mod.rs +++ b/matrix_sdk_crypto/src/verification/sas/mod.rs @@ -195,6 +195,7 @@ impl Sas { other_identity: Option, transaction_id: Option, we_started: bool, + request_handle: Option, ) -> (Sas, OutgoingContent) { let (inner, content) = InnerSas::start( account.clone(), @@ -212,7 +213,7 @@ impl Sas { store, other_identity, we_started, - None, + request_handle, ), content, ) @@ -627,6 +628,7 @@ mod test { None, None, true, + None, ); let flow_id = alice.flow_id().to_owned();