allow adding canonical aliases from remote servers

Like is mentioned in the comment, this isn't explicitly required by the
spec, but it's reasonable and what synapse does.
This commit is contained in:
Olivia Lee 2025-01-20 16:53:08 -08:00
parent 29d8fbaefa
commit 472f51c350
No known key found for this signature in database
GPG key ID: 54D568A15B9CD1F9
4 changed files with 57 additions and 12 deletions

View file

@ -107,6 +107,8 @@ pub(crate) async fn get_alias_route(
get_alias_helper(body.body.room_alias).await.map(Ra)
}
// Can't use `services().rooms.alias.resolve_alias` because we also need the set
// of servers from the remote get_room_information request.
pub(crate) async fn get_alias_helper(
room_alias: OwnedRoomAliasId,
) -> Result<get_alias::v3::Response> {