File tree 2 files changed +7
-7
lines changed
crates/matrix-sdk-crypto/src
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ impl GossipMachine {
313
313
let device =
314
314
self . inner . store . get_device ( & event. sender , & event. content . requesting_device_id ) . await ?;
315
315
316
- Ok ( if let Some ( device) = device {
316
+ if let Some ( device) = device {
317
317
if device. user_id ( ) == self . user_id ( ) {
318
318
if device. is_verified ( ) {
319
319
info ! (
@@ -338,7 +338,7 @@ impl GossipMachine {
338
338
Ok ( None )
339
339
}
340
340
Err ( e) => Err ( e) ,
341
- } ?
341
+ }
342
342
} else {
343
343
info ! (
344
344
user_id = ?device. user_id( ) ,
@@ -347,7 +347,7 @@ impl GossipMachine {
347
347
"Received a secret request that we won't serve, the device isn't trusted" ,
348
348
) ;
349
349
350
- None
350
+ Ok ( None )
351
351
}
352
352
} else {
353
353
info ! (
@@ -357,7 +357,7 @@ impl GossipMachine {
357
357
"Received a secret request that we won't serve, the device doesn't belong to us" ,
358
358
) ;
359
359
360
- None
360
+ Ok ( None )
361
361
}
362
362
} else {
363
363
warn ! (
@@ -374,8 +374,8 @@ impl GossipMachine {
374
374
. mark_user_as_changed ( & event. sender )
375
375
. await ?;
376
376
377
- None
378
- } )
377
+ Ok ( None )
378
+ }
379
379
}
380
380
381
381
/// Try to encrypt the given `InboundGroupSession` for the given `Device` as
Original file line number Diff line number Diff line change @@ -651,7 +651,7 @@ impl ReadOnlyDevice {
651
651
}
652
652
} else {
653
653
warn ! (
654
- "Trying to find a Olm session of a device, but the device doesn't have a \
654
+ "Trying to find an Olm session of a device, but the device doesn't have a \
655
655
Curve25519 key",
656
656
) ;
657
657
You can’t perform that action at this time.
0 commit comments