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

Commit 1404f68

Browse files
authored
Fix joining rooms through aliases where the alias server isn't a real homeserver (#15776)
1 parent 87e5df9 commit 1404f68

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/15776.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix joining rooms through aliases where the alias server isn't a real homeserver. Contributed by @tulir @ Beeper.

synapse/handlers/room_member.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ async def lookup_room_alias(
14981498
# put the server which owns the alias at the front of the server list.
14991499
if room_alias.domain in servers:
15001500
servers.remove(room_alias.domain)
1501-
servers.insert(0, room_alias.domain)
1501+
servers.insert(0, room_alias.domain)
15021502

15031503
return RoomID.from_string(room_id), servers
15041504

0 commit comments

Comments
 (0)