Skip to content
Snippets Groups Projects
Commit 24ae0eee authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

v2 /sync: Rename the keys of the 'rooms' object to match member states

joined->join
invited->invite
archived->leave
parent 3c3fc6b2
No related branches found
No related tags found
No related merge requests found
...@@ -148,9 +148,9 @@ class SyncRestServlet(RestServlet): ...@@ -148,9 +148,9 @@ class SyncRestServlet(RestServlet):
sync_result.presence, filter, time_now sync_result.presence, filter, time_now
), ),
"rooms": { "rooms": {
"joined": joined, "join": joined,
"invited": invited, "invite": invited,
"archived": archived, "leave": archived,
}, },
"next_batch": sync_result.next_batch.to_string(), "next_batch": sync_result.next_batch.to_string(),
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment