summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/sync.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2015-11-18 11:38:36 +0000
committerRichard van der Hoff <richard@matrix.org>2015-11-19 10:51:12 +0000
commit24ae0eee8e76985fae6cfcb1f5811a24bbd47d0a (patch)
treed2054ec2f5bd217fc74bc5c1a22267ab455ec601 /synapse/rest/client/v2_alpha/sync.py
parentFlatten the /sync response to remove the event_map (diff)
downloadsynapse-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 'synapse/rest/client/v2_alpha/sync.py')
-rw-r--r--synapse/rest/client/v2_alpha/sync.py6
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(),
         }