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

Commit

Permalink
Merge pull request #2986 from jplatte/join_reponse_room_id
Browse files Browse the repository at this point in the history
Add room_id to the response of `rooms/{roomId}/join`
  • Loading branch information
richvdh committed Apr 5, 2018
2 parents 3449da3 + 47ce527 commit c7f0969
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion synapse/rest/client/v1/room.py
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 c7f0969

Please sign in to comment.