Flarum (2.x)
    Preparing search index...
    • Reloads a discussion after realtime activity in it and, if the reader was at the end, brings the new posts into view.

      Resolves with whether it caught up, never rejecting. A failed request has shown its own error, and the posts on screen stay as they are until the next event or reconnect catches up again.

      Parameters

      • discussion: Discussion
      • stream: PostStreamState
      • wasViewingEnd: boolean

        Whether the reader was at the end before the activity reached the store; see #4717.

      Returns Promise<boolean>