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:
Anders Kaseorg
2021-03-29 17:21:21 -07:00
committed by Tim Abbott
parent fbf5ff26af
commit d43ac7357a
61 changed files with 409 additions and 363 deletions

View File

@@ -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) {