summary refs log tree commit diff
path: root/synapse/handlers/appservice.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-03-16 15:24:32 +0000
committerKegan Dougal <kegan@matrix.org>2015-03-16 15:24:32 +0000
commitf0d6f724a241a50d4a12b1c00af2a4cc6f9a43f1 (patch)
tree3cfad53bcef8a3b08e25e9a08da1f91f78789a5a /synapse/handlers/appservice.py
parentImplement ServiceQueuer with tests. (diff)
downloadsynapse-f0d6f724a241a50d4a12b1c00af2a4cc6f9a43f1.tar.xz
Set the service ID as soon as it is known.
Diffstat (limited to 'synapse/handlers/appservice.py')
-rw-r--r--synapse/handlers/appservice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py
index a24f7f5587..58b5b60bb7 100644
--- a/synapse/handlers/appservice.py
+++ b/synapse/handlers/appservice.py
@@ -59,13 +59,13 @@ class ApplicationServicesHandler(object):
             )
             if not stored_service:
                 raise StoreError(404, "Application service not found")
+            app_service.id = stored_service.id
         except StoreError:
             raise SynapseError(
                 403, "Unrecognised application services token. "
                 "Consult the home server admin.",
                 errcode=Codes.FORBIDDEN
             )
-
         app_service.hs_token = self._generate_hs_token()
 
         # create a sender for this application service which is used when