Skip to main content

apply_state

Function apply_state 

Source
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>,
) -> AppliedState
Expand 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.