summary refs log tree commit diff
path: root/synapse/rest/client/v1/room.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-04-06 09:14:40 +0100
committerRichard van der Hoff <richard@matrix.org>2018-04-06 09:14:40 +0100
commit052df50e498121d5c3cae5c5251b00379992f660 (patch)
tree3f57d4b2b7d5c3044f93e929dce0b5720592f716 /synapse/rest/client/v1/room.py
parentFix earlier logging patch (diff)
parentMerge pull request #2886 from turt2live/travis/new-worker-docs (diff)
downloadsynapse-052df50e498121d5c3cae5c5251b00379992f660.tar.xz
Merge branch 'develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/rest/client/v1/room.py')
-rw-r--r--synapse/rest/client/v1/room.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py

index 70d788deea..d06cbdc35e 100644 --- a/synapse/rest/client/v1/room.py +++ b/synapse/rest/client/v1/room.py
@@ -655,7 +655,12 @@ class RoomMembershipRestServlet(ClientV1RestServlet): content=event_content, ) - defer.returnValue((200, {})) + return_value = {} + + if membership_action == "join": + return_value["room_id"] = room_id + + defer.returnValue((200, return_value)) def _has_3pid_invite_keys(self, content): for key in {"id_server", "medium", "address"}: