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:
parent
8ad42a85ef
commit
8a767c4b10
3 changed files with 91 additions and 47 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue