File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
crates/matrix-sdk-ui/src/app Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -233,10 +233,13 @@ impl AppBuilder {
233
233
pub async fn build ( self ) -> Result < App , Error > {
234
234
let ( room_list, encryption_sync) = if self . with_encryption_sync {
235
235
let room_list = RoomListService :: new ( self . client . clone ( ) ) . await ?;
236
- let with_lock =
237
- if self . with_cross_process_lock { WithLocking :: Yes } else { WithLocking :: No } ;
238
- let encryption_sync =
239
- EncryptionSync :: new ( self . identifier , self . client , None , with_lock) . await ?;
236
+ let encryption_sync = EncryptionSync :: new (
237
+ self . identifier ,
238
+ self . client ,
239
+ None ,
240
+ WithLocking :: from ( self . with_cross_process_lock ) ,
241
+ )
242
+ . await ?;
240
243
( room_list, Some ( Arc :: new ( encryption_sync) ) )
241
244
} else {
242
245
let room_list = RoomListService :: new_with_encryption ( self . client . clone ( ) ) . await ?;
You can’t perform that action at this time.
0 commit comments