mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
recent_view: Fix Load more not working after fetching 50k messages.
We do another fetch for `recent_view_fetch_more_batch_size` after reaching 50k limit each time `Load more` is pressed.
This commit is contained in:
@@ -565,14 +565,17 @@ export function maybe_load_older_messages(opts: {
|
||||
}
|
||||
|
||||
if (fetched_substantial_history && found_first_unread) {
|
||||
recent_view_ui.set_backfill_in_progress(false);
|
||||
return;
|
||||
// Once we have fetched enough history, we just do fetches in
|
||||
// `consts.recent_view_fetch_more_batch_size`.
|
||||
opts.cont = () => {
|
||||
recent_view_ui.set_backfill_in_progress(false);
|
||||
};
|
||||
} else {
|
||||
opts.cont = () =>
|
||||
setTimeout(() => {
|
||||
maybe_load_older_messages(opts);
|
||||
}, consts.catch_up_backfill_delay);
|
||||
}
|
||||
|
||||
opts.cont = () =>
|
||||
setTimeout(() => {
|
||||
maybe_load_older_messages(opts);
|
||||
}, consts.catch_up_backfill_delay);
|
||||
}
|
||||
do_backfill({
|
||||
msg_list: opts.msg_list,
|
||||
|
||||
Reference in New Issue
Block a user