on room alias joins, attempt to find the room ID through *more* servers if available

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-21 23:36:20 -04:00 committed by June
parent 8ad42a85ef
commit 8a767c4b10
3 changed files with 91 additions and 47 deletions

View file

@ -198,7 +198,7 @@ pub async fn join_room_by_id_or_alias_route(
));
}
let response = get_alias_helper(room_alias.clone()).await?;
let response = get_alias_helper(room_alias.clone(), Some(body.server_name.clone())).await?;
if services().rooms.metadata.is_banned(&response.room_id)? && !services().users.is_admin(sender_user)? {
return Err(Error::BadRequest(