mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
js: Move current_msg_list, home_msg_list to ES6 module message_lists.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
fbf5ff26af
commit
d43ac7357a
@@ -1,6 +1,7 @@
|
||||
import $ from "jquery";
|
||||
|
||||
import * as blueslip from "./blueslip";
|
||||
import * as message_lists from "./message_lists";
|
||||
import * as message_store from "./message_store";
|
||||
// We don't need an andSelf() here because we already know
|
||||
// that our next element is *not* a message_row, so this
|
||||
@@ -53,7 +54,7 @@ export function visible_range(start_id, end_id) {
|
||||
|
||||
const rows = [];
|
||||
|
||||
let row = current_msg_list.get_row(start_id);
|
||||
let row = message_lists.current.get_row(start_id);
|
||||
let msg_id = id(row);
|
||||
|
||||
while (msg_id <= end_id) {
|
||||
|
||||
Reference in New Issue
Block a user