Chat Viewer
    Preparing search index...

    Function followAtBottom

    • A helper function that creates a callback to scroll to the bottom of the chat viewer when the chat is at the bottom. It can be used to scroll to the new messages or to the suffix when it is visible. It returns a generic ChatCallback that can be used with the chat viewer.

      Type Parameters

      Parameters

      • opts: ScrollToIndexOpts = DEFAULT_SCROLL_OPTS

        ScrollToItemOpts options for controlling the scroll behavior

      Returns ChatCallback<M>

      A callback that performs the scroll action.