@@ -10,6 +10,8 @@ use std::{
1010use js_int:: UInt ;
1111use matrix_sdk_common:: deserialized_responses:: AlgorithmInfo ;
1212use matrix_sdk_crypto:: {
13+ CollectStrategy , DecryptionSettings , LocalTrust , OlmMachine as InnerMachine ,
14+ UserIdentity as SdkUserIdentity ,
1315 backups:: {
1416 MegolmV1BackupKey as RustBackupKey , SignatureState ,
1517 SignatureVerification as RustSignatureCheckResult ,
@@ -18,11 +20,12 @@ use matrix_sdk_crypto::{
1820 olm:: ExportedRoomKey ,
1921 store:: types:: { BackupDecryptionKey , Changes } ,
2022 types:: requests:: ToDeviceRequest ,
21- CollectStrategy , DecryptionSettings , LocalTrust , OlmMachine as InnerMachine ,
22- UserIdentity as SdkUserIdentity ,
2323} ;
2424use ruma:: {
25+ DeviceKeyAlgorithm , EventId , OneTimeKeyAlgorithm , OwnedTransactionId , OwnedUserId , RoomId ,
26+ UserId ,
2527 api:: {
28+ IncomingResponse ,
2629 client:: {
2730 backup:: add_backup_keys:: v3:: Response as KeysBackupResponse ,
2831 keys:: {
@@ -32,35 +35,32 @@ use ruma::{
3235 upload_signatures:: v3:: Response as SignatureUploadResponse ,
3336 } ,
3437 message:: send_message_event:: v3:: Response as RoomMessageResponse ,
35- sync:: sync_events:: { v3 :: ToDevice , DeviceLists as RumaDeviceLists } ,
38+ sync:: sync_events:: { DeviceLists as RumaDeviceLists , v3 :: ToDevice } ,
3639 to_device:: send_event_to_device:: v3:: Response as ToDeviceResponse ,
3740 } ,
38- IncomingResponse ,
3941 } ,
4042 events:: {
41- key :: verification :: VerificationMethod , room :: message :: MessageType , AnyMessageLikeEvent ,
42- AnySyncMessageLikeEvent , AnyTimelineEvent , MessageLikeEvent ,
43+ AnyMessageLikeEvent , AnySyncMessageLikeEvent , AnyTimelineEvent , MessageLikeEvent ,
44+ key :: verification :: VerificationMethod , room :: message :: MessageType ,
4345 } ,
4446 serde:: Raw ,
4547 to_device:: DeviceIdOrAllDevices ,
46- DeviceKeyAlgorithm , EventId , OneTimeKeyAlgorithm , OwnedTransactionId , OwnedUserId , RoomId ,
47- UserId ,
4848} ;
4949use serde:: { Deserialize , Serialize } ;
50- use serde_json:: { value:: RawValue , Value } ;
50+ use serde_json:: { Value , value:: RawValue } ;
5151use tokio:: runtime:: Runtime ;
5252use zeroize:: Zeroize ;
5353
5454use crate :: {
55- dehydrated_devices:: DehydratedDevices ,
56- error:: { CryptoStoreError , DecryptionError , SecretImportError , SignatureError } ,
57- parse_user_id,
58- responses:: { response_from_string, OwnedResponse } ,
5955 BackupKeys , BackupRecoveryKey , BootstrapCrossSigningResult , CrossSigningKeyExport ,
6056 CrossSigningStatus , DecodeError , DecryptedEvent , Device , DeviceLists , EncryptionSettings ,
6157 EventEncryptionAlgorithm , KeyImportError , KeysImportResult , MegolmV1BackupKey ,
6258 ProgressListener , Request , RequestType , RequestVerificationResult , RoomKeyCounts , RoomSettings ,
6359 Sas , SignatureUploadRequest , StartSasResult , UserIdentity , Verification , VerificationRequest ,
60+ dehydrated_devices:: DehydratedDevices ,
61+ error:: { CryptoStoreError , DecryptionError , SecretImportError , SignatureError } ,
62+ parse_user_id,
63+ responses:: { OwnedResponse , response_from_string} ,
6464} ;
6565
6666/// The return value for the [`OlmMachine::receive_sync_changes()`] method.
0 commit comments