From 5427f0d08ac073303401750b7905a61526e93c46 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 13 Jun 2023 21:29:37 +0300 Subject: [PATCH] Fix joining rooms through mauliasproxy aliases Signed-off-by: Tulir Asokan --- changelog.d/15776.bugfix | 1 + synapse/handlers/room_member.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/15776.bugfix diff --git a/changelog.d/15776.bugfix b/changelog.d/15776.bugfix new file mode 100644 index 000000000..d0b389561 --- /dev/null +++ b/changelog.d/15776.bugfix @@ -0,0 +1 @@ +Fixed joining rooms through aliases where the alias server isn't a real homeserver. Contributed by @tulir @ Beeper diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index af0ca5c26..55df34bd0 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -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