Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

left_sidebar: Exit DM zoom fully when zooming into channel topics.

Evy Kassirer9b4baad97f5e
diff --git a/web/src/pm_list.ts b/web/src/pm_list.ts
index 0cfcd4d3edb..ae0b4781adc 100644
--- a/web/src/pm_list.ts
+++ b/web/src/pm_list.ts
@@ -393,7 +393,7 @@ function zoom_in(): void {
$filter.trigger("focus");
}
-function zoom_out(): void {
+export function zoom_out(): void {
if (!zoomed) {
return;
}
diff --git a/web/src/stream_list.ts b/web/src/stream_list.ts
index 15853ec1b5f..f137b851cfb 100644
--- a/web/src/stream_list.ts
+++ b/web/src/stream_list.ts
@@ -163,7 +163,7 @@ function zoom_in(stream_id: number): void {
}
zoomed_in = true;
- $("#direct-messages-modal").toggleClass("no-display", true);
+ pm_list.zoom_out();
popovers.hide_all();
pm_list.close();
zoom_in_topics(stream_id);