fixup! feat(federation): support /make_join and /send_join for restricted rooms
collect iterator
This commit is contained in:
parent
062f138cfe
commit
7fa0025c43
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue