mirror of
https://github.com/matrix-org/synapse.git
synced 2025-10-20 14:58:27 +00:00
Fix joining rooms through aliases where the alias server isn't a real homeserver (#15776)
This commit is contained in:
parent
87e5df9a6e
commit
1404f68a03
1
changelog.d/15776.bugfix
Normal file
1
changelog.d/15776.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix joining rooms through aliases where the alias server isn't a real homeserver. Contributed by @tulir @ Beeper.
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user