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

@@ -6,6 +6,7 @@ import * as common from "./common";
import {i18n} from "./i18n";
import {localstorage} from "./localstorage";
import * as message_list from "./message_list";
import * as message_lists from "./message_lists";
// What, if anything, obscures the home tab?
@@ -51,7 +52,7 @@ export function reset_scrollbar(element_selector) {
}
function update_message_in_all_views(message_id, callback) {
for (const list of [message_list.all, home_msg_list, message_list.narrowed]) {
for (const list of [message_list.all, message_lists.home, message_list.narrowed]) {
if (list === undefined) {
continue;
}