Fix joining rooms through mauliasproxy aliases

Signed-off-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
Tulir Asokan 2023-06-13 21:29:37 +03:00
parent 59ec4a0dc1
commit 5427f0d08a
2 changed files with 2 additions and 1 deletions

1
changelog.d/15776.bugfix Normal file
View File

@ -0,0 +1 @@
Fixed joining rooms through aliases where the alias server isn't a real homeserver. Contributed by @tulir @ Beeper

View File

@ -1498,7 +1498,7 @@ class RoomMemberHandler(metaclass=abc.ABCMeta):
# put the server which owns the alias at the front of the server list.
if room_alias.domain in servers:
servers.remove(room_alias.domain)
servers.insert(0, room_alias.domain)
servers.insert(0, room_alias.domain)
return RoomID.from_string(room_id), servers