mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
This change mostly de-duplicates code, but it also prevents some unnecessary backfills if you're in the home view and happen to scroll back while the idle loop is right in the middle of a backfill fetch, or if the idle loop has taken you back to the oldest message already. This is a consequence of do_backfill() calling msg_list.fetch_status functions. Everything else should work pretty much the same, since do_backfill() computes anchor essentially the same way we originally doing it in the onIdle() function.
8.6 KiB
8.6 KiB