Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix joining rooms through aliases where the alias server isn't a real…
Browse files Browse the repository at this point in the history
… homeserver (#15776)
  • Loading branch information
tulir authored Jun 14, 2023
1 parent 87e5df9 commit 1404f68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/15776.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix joining rooms through aliases where the alias server isn't a real homeserver. Contributed by @tulir @ Beeper.
2 changes: 1 addition & 1 deletion synapse/handlers/room_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ async def lookup_room_alias(
# 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

Expand Down

0 comments on commit 1404f68

Please sign in to comment.