summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-09-25 13:48:53 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-09-25 13:48:53 +0100
commitf2b0d1073ce8f16bbd55ef9be6ee9088d314e276 (patch)
treee503fac5de7a5a28b3eb223a05741fabb9617251
parentAdded typing, docstrings, comments (diff)
downloadsynapse-f2b0d1073ce8f16bbd55ef9be6ee9088d314e276.tar.xz
Return room_id to the client after a successful knock
-rw-r--r--synapse/rest/client/v2_alpha/knock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v2_alpha/knock.py b/synapse/rest/client/v2_alpha/knock.py
index de9f9a5b32..c7f562e87d 100644
--- a/synapse/rest/client/v2_alpha/knock.py
+++ b/synapse/rest/client/v2_alpha/knock.py
@@ -70,7 +70,7 @@ class KnockServlet(TransactionRestServlet):
             content=event_content,
         )
 
-        return 200, {}
+        return 200, {"room_id": room_id}
 
     def on_PUT(self, request: Request, room_id: str, txn_id: str):
         set_tag("txn_id", txn_id)
@@ -131,7 +131,7 @@ class KnockRoomAliasServlet(TransactionRestServlet):
             content=event_content,
         )
 
-        return 200, {}
+        return 200, {"room_id": room_id}
 
     def on_PUT(self, request: Request, room_identifier: str, txn_id: str):
         set_tag("txn_id", txn_id)