restricted room join typo

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-24 15:13:22 -04:00 committed by June
parent 3c45a468f1
commit a81563244f

View file

@ -1150,7 +1150,7 @@ pub(crate) async fn join_room_by_id_helper(
if !restriction_rooms.is_empty() if !restriction_rooms.is_empty()
&& servers && servers
.iter() .iter()
.all(|s| *s != services().globals.server_name()) .any(|s| *s != services().globals.server_name())
{ {
info!( info!(
"We couldn't do the join locally, maybe federation can help to satisfy the restricted join \ "We couldn't do the join locally, maybe federation can help to satisfy the restricted join \