Skip to main content

mark_rooms_to_sync

Function mark_rooms_to_sync 

Source
fn mark_rooms_to_sync(
    prev_events_stream_id: StreamId,
    matched_rooms: &HashMap<OwnedRoomId, MatchedRoom>,
    rooms_states: &mut HashMap<OwnedRoomId, RoomState>,
) -> HashMap<OwnedRoomId, RoomToSync>
Expand description

Computes the list of rooms to sync by applying the rooms states to the rooms matched by the request.

This will also update the rooms_states by marking all the rooms to sync as LIVE.