Improve how the fetch_status.has_found_newest is set when loading a view from cache #30023
Labels
area: message feed (scrolling)
Scroll behavior, performance, and side-effects (marking as read)
area: refactoring
difficult
Issues which we expect to be quite difficult
This logic is wrong/not ideal, in that it doesn't check whether
fetch_status.has_found_newest
is true.See a2fe33a for detailed context on why the state of affairs is what it is today.
Fixing this likely involves extending the
fetch_status
structure to be capable of tracking the state of "We think we have all the latest messages, but are asking the server to double-check our understanding anyway."See https://chat.zulip.org/#narrow/stream/9-issues/topic/message.20list.20doesn't.20load.20newer.20messages.20when.20near.20end/near/1795139 for detailed context.
We could also think about working towards revisiting the behavior of unconditionally always asking the server about older messages in a given conversation; if we're able to clean out certain categories of bugs, in theory that should not be necessary a lot of the time thanks to extensive local caching.
The text was updated successfully, but these errors were encountered: