matrix-js-sdk

    Internal Class. SlidingList represents a single list in sliding sync. The list can have filters, multiple sliding windows, and maintains the index->room_id mapping.

    Index

    Constructors

    Properties

    joinedCount: number = 0

    Methods

    • Return a copy of the list suitable for a request body.

      Parameters

      • forceIncludeAllParams: boolean

        True to forcibly include all params even if the list hasn't been modified. Callers may want to do this if they are modifying the list prior to calling updateList.

      Returns MSC3575List

    • Mark this list as modified or not. Modified lists will return sticky params with calls to getList. This is useful for the first time the list is sent, or if the list has changed in some way.

      Parameters

      • modified: boolean

        True to mark this list as modified so all sticky parameters will be re-sent.

      Returns void

    • Update the list range for this list. Does not affect modified status as list ranges are non-sticky.

      Parameters

      • newRanges: number[][]

        The new ranges for the list

      Returns void

    MMNEPVFCICPMFPCPTTAAATR