Process states received via timeline (Est: 6, Act: 1+i)
In sync response, state
field is the state change between the end of last sync and the start of this sync, and will be guaranteed to be empty if the sync is not limited ( https://matrix.org/docs/spec/client_server/latest#get-matrix-client-r0-sync ).
Thus we need to distinguish between state events and message events in the timeline, and add state events to the room state.
Edited by tusooa