From 7fa0025c4312f55d35962f84bee9c36f4c5c3654 Mon Sep 17 00:00:00 2001 From: Matthias Ahouansou Date: Mon, 1 Jul 2024 11:34:32 +0100 Subject: [PATCH] fixup! feat(federation): support /make_join and /send_join for restricted rooms collect iterator --- src/api/server_server.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/server_server.rs b/src/api/server_server.rs index b049f607..53db8453 100644 --- a/src/api/server_server.rs +++ b/src/api/server_server.rs @@ -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;