From 3dac8d7d97d238b5811378573a7420fdaf6aebbb Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 17 Jun 2020 23:38:49 -0700 Subject: [PATCH] message_fetch: Rename constants for clarity. The "pointer" is no longer a concept; what we mean to refer to here is the anchor. --- static/js/message_fetch.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/message_fetch.js b/static/js/message_fetch.js index a296004ed7..8a9d453a83 100644 --- a/static/js/message_fetch.js +++ b/static/js/message_fetch.js @@ -6,8 +6,8 @@ const consts = { backfill_batch_size: 1000, narrow_before: 50, narrow_after: 50, - num_before_pointer: 200, - num_after_pointer: 200, + num_before_home_anchor: 200, + num_after_home_anchor: 200, backward_batch_size: 100, forward_batch_size: 100, catch_up_batch_size: 1000, @@ -408,8 +408,8 @@ exports.initialize = function () { } exports.load_messages({ anchor: anchor, - num_before: consts.num_before_pointer, - num_after: consts.num_after_pointer, + num_before: consts.num_before_home_anchor, + num_after: consts.num_after_home_anchor, msg_list: home_msg_list, cont: load_more, });