message_fetch: Fix load_messages_for_narrow anchor parameter.

This makes the code more readable, by just passing the anchor through
without changing its field name back and forth.

There's no reason for this parameter to involve parsing and integer --
it should be a number in all incoming code paths.
This commit is contained in:
Tim Abbott
2020-01-27 21:57:07 -08:00
parent e2810d7549
commit bf2f36e6b4
3 changed files with 3 additions and 3 deletions

View File

@@ -222,7 +222,7 @@ exports.load_messages_for_narrow = function (opts) {
const msg_list = message_list.narrowed;
exports.load_messages({
anchor: opts.then_select_id.toFixed(),
anchor: opts.anchor,
num_before: consts.narrow_before,
num_after: consts.narrow_after,
msg_list: msg_list,