mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 12:54:58 +00:00
recent_topics: Split into three modules.
We split recent_topics module into recent_topics_(ui + data + util). This allows us to reduce cyclical dependencies which were created due to large list of imports in recent topics. Also, this refactor on its own makes sense.
This commit is contained in:
@@ -14,7 +14,7 @@ import * as narrow_banner from "./narrow_banner";
|
||||
import {page_params} from "./page_params";
|
||||
import * as people from "./people";
|
||||
import * as pm_list from "./pm_list";
|
||||
import * as recent_topics from "./recent_topics";
|
||||
import * as recent_topics_ui from "./recent_topics_ui";
|
||||
import * as stream_data from "./stream_data";
|
||||
import * as stream_list from "./stream_list";
|
||||
import * as ui_report from "./ui_report";
|
||||
@@ -76,7 +76,7 @@ function process_result(data, opts) {
|
||||
huddle_data.process_loaded_messages(messages);
|
||||
stream_list.update_streams_sidebar();
|
||||
pm_list.update_private_messages();
|
||||
recent_topics.process_messages(messages);
|
||||
recent_topics_ui.process_messages(messages);
|
||||
|
||||
stream_list.maybe_scroll_narrow_into_view();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user