Flarum (2.x)
    Preparing search index...

    Tracks which discussions currently have someone typing, for the ambient dot on the discussion list. Fed by the single index-typing channel (see Application), which delivers coalesced, presence-only signals — no names, no per-discussion subscriptions. A single shared instance backs every DiscussionListItem.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    truncationTimer: Timeout | null = null
    typing: PresenceMap = {}

    Methods

    • Whether someone is currently typing in the given discussion. Prunes expired entries and schedules a redraw for when the most recent entry will expire, so a stale dot clears itself even if the falling-edge event never arrives.

      Parameters

      • discussionId: string | number

      Returns boolean