Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add room_id to the response of rooms/{roomId}/join
Browse files Browse the repository at this point in the history
Fixes #2349
  • Loading branch information
jplatte committed Mar 13, 2018
1 parent 56e7098 commit 47ce527
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion synapse/rest/client/v1/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,12 @@ def on_POST(self, request, room_id, membership_action, txn_id=None):
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"}:
Expand Down

0 comments on commit 47ce527

Please sign in to comment.