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

Commit

Permalink
client/v1/room: include event_id in response to state event PUT, in a…
Browse files Browse the repository at this point in the history
…ccordance with the spec

Signed-off-by: Patrik Oldsberg <[email protected]>
  • Loading branch information
Patrik Oldsberg committed Feb 17, 2016
1 parent 458782b commit 71d5d2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/rest/client/v1/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@ def on_PUT(self, request, room_id, event_type, state_key, txn_id=None):
event_dict["state_key"] = state_key

msg_handler = self.handlers.message_handler
yield msg_handler.create_and_send_event(
event = yield msg_handler.create_and_send_event(
event_dict, token_id=requester.access_token_id, txn_id=txn_id,
)

defer.returnValue((200, {}))
defer.returnValue((200, {"event_id": event.event_id}))


# TODO: Needs unit testing for generic events + feedback
Expand Down

0 comments on commit 71d5d2c

Please sign in to comment.