Skip to content

msglist: On event-queue refresh, re-fetch the position you were reading; control scroll position #1273

Open
@chrisbobbe

Description

@chrisbobbe

When we learn that our connection to the server ("event queue") has expired, after we get a new one, we re-fetch messages in any open message lists because the old data may be out-of-date.

When possible, after the re-fetch, we want to show the user the same messages, in their same positions onscreen, as before. This issue is for doing that.

Currently, after the re-fetch, we always put the user at the latest messages in the view, regardless of what messages they were looking at before.


First, the code should choose a message to anchor to; see #1008: "But a simple algorithm would be […]".

The re-fetch should be done at that anchor; this requires

We should also try to put the fetched "anchor" message in the same position onscreen as it was before the re-fetch.

Related issues

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    • Status

      No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions