mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
js: Break cyclic dependency between modules related to stream_data.
Moved `stream_data.is_active` to `stream_sort.has_recent_activity` to remove the cyclic dependency between `stream_data` and `stream_topic_history`.
This commit is contained in:
@@ -63,6 +63,7 @@ import * as stream_data from "./stream_data";
|
||||
import * as stream_events from "./stream_events";
|
||||
import * as stream_list from "./stream_list";
|
||||
import * as stream_settings_ui from "./stream_settings_ui";
|
||||
import * as stream_sort from "./stream_sort";
|
||||
import * as stream_topic_history from "./stream_topic_history";
|
||||
import * as stream_ui_updates from "./stream_ui_updates";
|
||||
import * as sub_store from "./sub_store";
|
||||
@@ -668,7 +669,7 @@ export function dispatch_normal_event(event) {
|
||||
}
|
||||
if (event.property === "demote_inactive_streams") {
|
||||
stream_list.update_streams_sidebar();
|
||||
stream_data.set_filter_out_inactives();
|
||||
stream_sort.set_filter_out_inactives();
|
||||
}
|
||||
if (event.property === "user_list_style") {
|
||||
settings_display.report_user_list_style_change(
|
||||
|
||||
Reference in New Issue
Block a user