mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user