From 4adfd57378298565b797f7c8c89e009bb4552de0 Mon Sep 17 00:00:00 2001 From: evykassirer Date: Thu, 5 Oct 2023 11:06:18 -0700 Subject: [PATCH] message_fetch: Rename batch size constants to specify narrow views. This is in preparation for introducing a batch size constant for the recent view. --- web/src/message_fetch.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/message_fetch.js b/web/src/message_fetch.js index 92c4e0d73a..9d26429350 100644 --- a/web/src/message_fetch.js +++ b/web/src/message_fetch.js @@ -26,8 +26,8 @@ const consts = { num_before_home_anchor: 200, num_after_home_anchor: 200, recent_view_initial_fetch_size: 400, - backward_batch_size: 100, - forward_batch_size: 100, + narrowed_view_backward_batch_size: 100, + narrowed_view_forward_batch_size: 100, catch_up_batch_size: 1000, }; @@ -394,7 +394,7 @@ export function maybe_load_older_messages(opts) { do_backfill({ msg_list, - num_before: consts.backward_batch_size, + num_before: consts.narrowed_view_backward_batch_size, }); } @@ -438,7 +438,7 @@ export function maybe_load_newer_messages(opts) { load_messages({ anchor, num_before: 0, - num_after: consts.forward_batch_size, + num_after: consts.narrowed_view_forward_batch_size, msg_list, cont: load_more, });