0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-18 15:24:05 +01:00

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

joined->join
invited->invite
archived->leave
This commit is contained in:
Richard van der Hoff 2015-11-18 11:38:36 +00:00
parent 3c3fc6b268
commit 24ae0eee8e

View file

@ -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(),
}