diff options
author | Richard van der Hoff <richard@matrix.org> | 2015-11-18 11:38:36 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2015-11-19 10:51:12 +0000 |
commit | 24ae0eee8e76985fae6cfcb1f5811a24bbd47d0a (patch) | |
tree | d2054ec2f5bd217fc74bc5c1a22267ab455ec601 /synapse | |
parent | Flatten the /sync response to remove the event_map (diff) | |
download | synapse-24ae0eee8e76985fae6cfcb1f5811a24bbd47d0a.tar.xz |
v2 /sync: Rename the keys of the 'rooms' object to match member states
joined->join invited->invite archived->leave
Diffstat (limited to '')
-rw-r--r-- | synapse/rest/client/v2_alpha/sync.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/rest/client/v2_alpha/sync.py b/synapse/rest/client/v2_alpha/sync.py index 89e1aa9fdd..ff4e85d2e9 100644 --- a/synapse/rest/client/v2_alpha/sync.py +++ b/synapse/rest/client/v2_alpha/sync.py @@ -148,9 +148,9 @@ class SyncRestServlet(RestServlet): sync_result.presence, filter, time_now ), "rooms": { - "joined": joined, - "invited": invited, - "archived": archived, + "join": joined, + "invite": invited, + "leave": archived, }, "next_batch": sync_result.next_batch.to_string(), } |