mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
pm_list: Handle narrow functions separately for pm_section.
This commit is a preparatory commit which introduces `handle_narrow_deactivated` and `handle_narrow_activated` functions in pm_list.js, separately from top_left_corner.js, to reduce the complexity of handling private messages section separately.
This commit is contained in:
@@ -25,6 +25,7 @@ import * as narrow_state from "./narrow_state";
|
||||
import * as notifications from "./notifications";
|
||||
import {page_params} from "./page_params";
|
||||
import * as people from "./people";
|
||||
import * as pm_list from "./pm_list";
|
||||
import * as recent_topics_ui from "./recent_topics_ui";
|
||||
import * as recent_topics_util from "./recent_topics_util";
|
||||
import * as resize from "./resize";
|
||||
@@ -570,6 +571,7 @@ export function activate(raw_operators, opts) {
|
||||
const current_filter = narrow_state.filter();
|
||||
|
||||
top_left_corner.handle_narrow_activated(current_filter);
|
||||
pm_list.handle_narrow_activated(current_filter);
|
||||
stream_list.handle_narrow_activated(current_filter);
|
||||
typing_events.render_notifications_for_narrow();
|
||||
message_view_header.initialize();
|
||||
@@ -980,6 +982,7 @@ function handle_post_narrow_deactivate_processes() {
|
||||
}
|
||||
|
||||
top_left_corner.handle_narrow_deactivated();
|
||||
pm_list.handle_narrow_deactivated();
|
||||
stream_list.handle_narrow_deactivated();
|
||||
compose_closed_ui.update_buttons_for_stream();
|
||||
message_edit.handle_narrow_deactivated();
|
||||
|
||||
Reference in New Issue
Block a user