Merge pull request #794 from matrix-org/kegan/join-with-server-name

Allow clients to specify a server_name to avoid 'No known servers'
pull/797/merge
Kegsay 2016-05-19 14:13:11 +01:00
commit 60ff2e7984
1 changed files with 4 additions and 1 deletions

View File

@ -232,6 +232,9 @@ class JoinRoomAliasServlet(ClientV1RestServlet):
if RoomID.is_valid(room_identifier):
room_id = room_identifier
try:
remote_room_hosts = request.args["server_name"]
except:
remote_room_hosts = None
elif RoomAlias.is_valid(room_identifier):
handler = self.handlers.room_member_handler