mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-03-14 18:55:37 +00:00
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
|
||||
.get_shared_rooms(sender_user, user_id)
|
||||
.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
|
||||
.rooms
|
||||
.state_accessor
|
||||
.is_encrypted_room(other_room_id)
|
||||
.is_encrypted_room(&other_room_id)
|
||||
.await
|
||||
})
|
||||
.await
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue