Skip to content

Improve threshold behavior for fetching new batch of messages on scroll #445

Closed as not planned
@sirpengi

Description

@sirpengi

As the user scrolls through the message list, we fetch a new batch of messages before they reach the end of the loaded history. If the user has a good network connection this is an amazing experience given they can continuously fling through history.

Currently we have a static value for the threshold at which we load extra messages (see kFetchMessagesBufferPixels in lib/widgets/message_list.dart) which currently evaluates to 4000. When it was first introduced in bccaead messages always had a recipient header attached, and since then not only are messages more compact (moreso due to work towards #157 ) but messages are grouped together by recipient header. A simple static value by itself is no longer sufficient, and we should probably dynamically adjust this value or change what we rely on to fetch new messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-msglistThe message-list screen, except what's label:a-content

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions