Put back the 'state.events' subobject

We're keeping 'events', in case we decide to add more keys later.
This commit is contained in:
Richard van der Hoff 2015-11-19 12:23:42 +00:00
parent 24ae0eee8e
commit f6e092f6cc

View file

@ -284,7 +284,7 @@ class SyncRestServlet(RestServlet):
"prev_batch": room.timeline.prev_batch.to_string(),
"limited": room.timeline.limited,
},
"state": serialized_state,
"state": {"events": serialized_state},
"private_user_data": {"events": private_user_data},
}