@@ -38,31 +38,25 @@ type DownloadCache = FailuresCache<RoomKeyInfo>;
38
38
39
39
#[ derive( Default ) ]
40
40
pub ( crate ) struct ClientTasks {
41
- #[ cfg( feature = "e2e-encryption" ) ]
42
41
pub ( crate ) upload_room_keys : Option < BackupUploadingTask > ,
43
- #[ cfg( feature = "e2e-encryption" ) ]
44
42
pub ( crate ) download_room_keys : Option < BackupDownloadTask > ,
45
- #[ cfg( feature = "e2e-encryption" ) ]
46
43
pub ( crate ) update_recovery_state_after_backup : Option < JoinHandle < ( ) > > ,
47
44
pub ( crate ) setup_e2ee : Option < JoinHandle < ( ) > > ,
48
45
}
49
46
50
- #[ cfg( feature = "e2e-encryption" ) ]
51
47
pub ( crate ) struct BackupUploadingTask {
52
48
sender : mpsc:: UnboundedSender < ( ) > ,
53
49
#[ allow( dead_code) ]
54
50
join_handle : JoinHandle < ( ) > ,
55
51
}
56
52
57
- #[ cfg( feature = "e2e-encryption" ) ]
58
53
impl Drop for BackupUploadingTask {
59
54
fn drop ( & mut self ) {
60
55
#[ cfg( not( target_family = "wasm" ) ) ]
61
56
self . join_handle . abort ( ) ;
62
57
}
63
58
}
64
59
65
- #[ cfg( feature = "e2e-encryption" ) ]
66
60
impl BackupUploadingTask {
67
61
pub ( crate ) fn new ( client : WeakClient ) -> Self {
68
62
let ( sender, receiver) = mpsc:: unbounded_channel ( ) ;
@@ -131,7 +125,6 @@ pub(crate) struct BackupDownloadTask {
131
125
join_handle : JoinHandle < ( ) > ,
132
126
}
133
127
134
- #[ cfg( feature = "e2e-encryption" ) ]
135
128
impl Drop for BackupDownloadTask {
136
129
fn drop ( & mut self ) {
137
130
#[ cfg( not( target_family = "wasm" ) ) ]
0 commit comments