crytpo: Remove an unneeded map/clone.
This commit is contained in:
parent
bcdcdeb259
commit
fc6ff2c78a
1 changed files with 1 additions and 6 deletions
|
@ -159,12 +159,7 @@ impl GroupSessionManager {
|
|||
|
||||
for user_id in session.users_to_share_with() {
|
||||
let user_devices = self.store.get_user_devices(&user_id).await?;
|
||||
devices.extend(
|
||||
user_devices
|
||||
.devices()
|
||||
.map(|d| d.clone())
|
||||
.filter(|d| !d.is_blacklisted()),
|
||||
)
|
||||
devices.extend(user_devices.devices().filter(|d| !d.is_blacklisted()));
|
||||
}
|
||||
|
||||
let mut requests = Vec::new();
|
||||
|
|
Loading…
Reference in a new issue