diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-07-09 13:01:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 13:01:42 +0100 |
commit | 53ee214f2f2ec3519ee37fe7cbcd0961e83678af (patch) | |
tree | cc85e8e9db9da4f357a9b2a23af9457b29f86c1b /synapse/rest/client | |
parent | Improve stacktraces from exceptions in background processes (#7808) (diff) | |
download | synapse-53ee214f2f2ec3519ee37fe7cbcd0961e83678af.tar.xz |
`update_membership` declaration: now always returns an event id. (#7809)
Diffstat (limited to 'synapse/rest/client')
-rw-r--r-- | synapse/rest/client/v1/room.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py index 46811abbfa..f40ed82142 100644 --- a/synapse/rest/client/v1/room.py +++ b/synapse/rest/client/v1/room.py @@ -217,10 +217,8 @@ class RoomStateEventRestServlet(TransactionRestServlet): ) event_id = event.event_id - ret = {} # type: dict - if event_id: - set_tag("event_id", event_id) - ret = {"event_id": event_id} + set_tag("event_id", event_id) + ret = {"event_id": event_id} return 200, ret |