summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-09-29 02:19:37 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-09-29 02:19:37 +0100
commit23b6a0537f9e2b46a5857a7c7bd0a03d04d4095d (patch)
treed26cd2ebac11d4c0f911a793a32634275d81b62a /synapse
parentfix thinkos (diff)
downloadsynapse-23b6a0537f9e2b46a5857a7c7bd0a03d04d4095d.tar.xz
emit room aliases event
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/register.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py
index 05e8f4ea73..7584064d5d 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -531,9 +531,14 @@ class RegistrationHandler(BaseHandler):
                 directory_handler = self.hs.get_handlers().directory_handler
                 room_alias = RoomAlias.from_string(room_identifier)
                 yield directory_handler.create_association(
-                    requester.user.to_string(),
-                    room_alias,
-                    room_id
+                    user_id=requester.user.to_string(),
+                    room_alias=room_alias,
+                    room_id=room_id,
+                    servers=[self.hs.hostname],
+                )
+
+                yield directory_handler.send_room_alias_update_event(
+                    requester, requester.user.to_string(), room_id
                 )
 
         room_id = None