We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea8084 commit abf5253Copy full SHA for abf5253
crates/matrix-sdk-crypto/src/verification/requests.rs
@@ -525,9 +525,9 @@ impl VerificationRequest {
525
if let OutgoingContent::ToDevice(c) = cancel_content {
526
let recipients: Vec<Box<DeviceId>> = self
527
.recipient_devices
528
- .to_vec()
529
- .into_iter()
530
- .filter(|d| if let Some(device) = filter_device { &**d != device } else { true })
+ .iter()
+ .filter(|&d| if let Some(device) = filter_device { **d != *device } else { true })
+ .cloned()
531
.collect();
532
533
// We don't need to notify anyone if no recipients were present
0 commit comments