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:
Lalit
2023-04-21 23:32:54 +05:30
committed by Tim Abbott
parent 40cea58f87
commit 2996e8e722
12 changed files with 225 additions and 191 deletions

View File

@@ -94,6 +94,7 @@ import * as stream_edit from "./stream_edit";
import * as stream_edit_subscribers from "./stream_edit_subscribers";
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 timerender from "./timerender";
import * as tippyjs from "./tippyjs";
import * as topic_list from "./topic_list";
@@ -639,6 +640,7 @@ export function initialize_everything() {
stream_settings_ui.initialize();
user_group_settings_ui.initialize();
stream_list.initialize();
stream_sort.initialize();
condense.initialize();
spoilers.initialize();
lightbox.initialize();