From a81563244f90be3a7463fc89107a383599df8ffb Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 24 Apr 2024 15:13:22 -0400 Subject: [PATCH] restricted room join typo Signed-off-by: strawberry --- src/api/client_server/membership.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/client_server/membership.rs b/src/api/client_server/membership.rs index 34d3bb4b..64ba5dce 100644 --- a/src/api/client_server/membership.rs +++ b/src/api/client_server/membership.rs @@ -1150,7 +1150,7 @@ pub(crate) async fn join_room_by_id_helper( if !restriction_rooms.is_empty() && servers .iter() - .all(|s| *s != services().globals.server_name()) + .any(|s| *s != services().globals.server_name()) { info!( "We couldn't do the join locally, maybe federation can help to satisfy the restricted join \