Constructors

  • Construct a new Filter.

    Parameters

    • userId: undefined | null | string

      The user ID for this filter.

    • OptionalfilterId: string

      The filter ID if known.

    Returns Filter

Properties

filterId?: string

The filter ID if known.

userId: undefined | null | string

The user ID for this filter.

LAZY_LOADING_MESSAGES_FILTER: {
    lazy_load_members: boolean;
} = ...

Methods

  • Filter the list of events based on whether they are allowed in a timeline based on this filter

    Parameters

    • events: MatrixEvent[]

      the list of events being filtered

    Returns MatrixEvent[]

    the list of events which match the filter

  • Get the ID of this filter on your homeserver (if known)

    Returns undefined | string

    The filter ID

  • Control whether left rooms should be included in responses.

    Parameters

    • includeLeave: boolean

      True to make rooms the user has left appear in responses.

    Returns void

  • Parameters

    • enabled: boolean

    Returns void

  • Set the max number of events to return for each room's timeline.

    Parameters

    • limit: number

      The max number of events to return for each room.

    Returns void

  • Enable threads unread notification

    Parameters

    • enabled: boolean

    Returns void