fix unsafe precondition violation
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
c614d5bf44
commit
01155fa649
1 changed files with 4 additions and 2 deletions
|
@ -76,11 +76,13 @@ async fn share_encrypted_room(
|
||||||
.state_cache
|
.state_cache
|
||||||
.get_shared_rooms(sender_user, user_id)
|
.get_shared_rooms(sender_user, user_id)
|
||||||
.ready_filter(|&room_id| Some(room_id) != ignore_room)
|
.ready_filter(|&room_id| Some(room_id) != ignore_room)
|
||||||
.broad_any(|other_room_id| {
|
.map(ToOwned::to_owned)
|
||||||
|
.broad_any(|other_room_id| async move {
|
||||||
services
|
services
|
||||||
.rooms
|
.rooms
|
||||||
.state_accessor
|
.state_accessor
|
||||||
.is_encrypted_room(other_room_id)
|
.is_encrypted_room(&other_room_id)
|
||||||
|
.await
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue