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

    Type Parameters

    Hierarchy (View Summary)

    Index
    lastCount: number = 0
    • Puts a dialog at the top of the list, as a new message in it does, without reloading. A list that hasn't loaded yet is left alone: it loads fresh.

      Parameters

      • dialog: Dialog
      • Optionallimit: number

        Keep the first page to this many dialogs, for short lists like the dropdown's.

      Returns void

    • Shows a dialog that has a new message where the list's sort puts it, without reloading. By the last message, that is the top. By when it was started, a listed dialog stays where it is, and one not listed goes among the loaded ones in order (ties by id, as the server breaks them), or is left out when it falls past them. A sort this doesn't know leaves the list as it is.

      Parameters

      • dialog: Dialog
      • Optionallimit: number

        Under the last-message sort, keep the first page to this many dialogs.

      Returns void