mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user