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 #581 from Rugvip/event_id
Browse files Browse the repository at this point in the history
client/v1/room: include event_id in response to state event PUT
  • Loading branch information
erikjohnston committed Feb 17, 2016
2 parents 458782b + 71d5d2c commit 97d1b3a
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 97d1b3a

Please sign in to comment.