Skip to main content

apply_lists

Function apply_lists 

Source
fn apply_lists(
    user_rooms: &HashMap<OwnedRoomId, RoomInfo>,
    lists: &BTreeMap<String, List>,
    result: &mut HashMap<OwnedRoomId, MatchedRoom>,
) -> Result<HashMap<String, usize>, SyncV4Error>
Expand description

Applies the request’s lists.

NOTE: This updates result in place for every matched room.

Returns the count of rooms that matched each list.