summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/appservice.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py
index fa810b9a98..5071a12eb1 100644
--- a/synapse/handlers/appservice.py
+++ b/synapse/handlers/appservice.py
@@ -52,8 +52,14 @@ class ApplicationServicesHandler(object):
                 "Consult the home server admin.",
                 errcode=Codes.FORBIDDEN
             )
-        logger.info("Updating application service info...")
+
         app_service.hs_token = self._generate_hs_token()
+
+        # create a sender for this application service which is used when
+        # creating rooms, etc..
+        account = yield self.hs.get_handlers().registration_handler.register()
+        app_service.sender = account[0]
+
         yield self.store.update_app_service(app_service)
         defer.returnValue(app_service)