fixup! feat(federation): support /make_join and /send_join for restricted rooms

collect iterator
This commit is contained in:
Matthias Ahouansou 2024-07-01 11:34:32 +01:00
parent 062f138cfe
commit 7fa0025c43
No known key found for this signature in database

View file

@ -1578,12 +1578,13 @@ pub async fn create_join_event_template_route(
.unwrap_or(false)
})
{
let members = services()
let members: Vec<_> = services()
.rooms
.state_cache
.room_members(&body.room_id)
.filter_map(Result::ok)
.filter(|user| user.server_name() == services().globals.server_name());
.filter(|user| user.server_name() == services().globals.server_name())
.collect();
let mut auth_user = None;