pub(super) fn apply_state(
prev_events_stream_id: StreamId,
matched_rooms: &HashMap<OwnedRoomId, MatchedRoom>,
user_rooms: &HashMap<OwnedRoomId, RoomInfo>,
rooms_states: &mut HashMap<OwnedRoomId, RoomState>,
) -> AppliedStateExpand description
Apply the current connection’s state (i.e. rooms streams and previously used configs) to the rooms matched by the request.
This function will also update the state to reflect what is being synced.