|
1 | 1 | use std::{fs, num::NonZeroUsize, path::Path, sync::Arc, time::Duration}; |
2 | 2 |
|
3 | 3 | use futures_util::StreamExt; |
4 | | -#[cfg(not(target_family = "wasm"))] |
5 | | -use matrix_sdk::{ |
6 | | - reqwest::{Certificate, Proxy}, |
7 | | - SqliteStoreConfig |
8 | | -}; |
9 | 4 | use matrix_sdk::{ |
10 | | - authentication::oauth::qrcode::{self, DeviceCodeErrorResponseType, LoginFailureReason}, crypto::{ |
| 5 | + authentication::oauth::qrcode::{self, DeviceCodeErrorResponseType, LoginFailureReason}, |
| 6 | + crypto::{ |
11 | 7 | types::qr_login::{LoginQrCodeDecodeError, QrCodeModeData}, |
12 | 8 | CollectStrategy, TrustRequirement, |
13 | | - }, encryption::{BackupDownloadStrategy, EncryptionSettings}, event_cache::EventCacheError, ruma::{ServerName, UserId}, sliding_sync::{ |
| 9 | + }, |
| 10 | + encryption::{BackupDownloadStrategy, EncryptionSettings}, |
| 11 | + event_cache::EventCacheError, |
| 12 | + ruma::{ServerName, UserId}, |
| 13 | + sliding_sync::{ |
14 | 14 | Error as MatrixSlidingSyncError, VersionBuilder as MatrixSlidingSyncVersionBuilder, |
15 | 15 | VersionBuilderError, |
16 | | - }, Client as MatrixClient, ClientBuildError as MatrixClientBuildError, HttpError, IdParseError, RumaApiError, SendOutsideWasm, SyncOutsideWasm |
| 16 | + }, |
| 17 | + Client as MatrixClient, ClientBuildError as MatrixClientBuildError, HttpError, IdParseError, |
| 18 | + RumaApiError, SendOutsideWasm, SyncOutsideWasm, |
| 19 | +}; |
| 20 | +#[cfg(not(target_family = "wasm"))] |
| 21 | +use matrix_sdk::{ |
| 22 | + reqwest::{Certificate, Proxy}, |
| 23 | + SqliteStoreConfig, |
17 | 24 | }; |
18 | | -use matrix_sdk_common::{runtime::get_runtime_handle, SendOutsideWasm, SyncOutsideWasm}; |
| 25 | +use matrix_sdk_common::runtime::get_runtime_handle; |
19 | 26 | use ruma::api::error::{DeserializationError, FromHttpResponseError}; |
20 | 27 | use tracing::{debug, error}; |
21 | 28 | use zeroize::Zeroizing; |
|
0 commit comments