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.

stream_list: Scroll topic / channel based on current narrow.

Aman Agrawal71fa4320eec9
diff --git a/web/src/stream_list.ts b/web/src/stream_list.ts
index 1a599b1c952..0e9349d0f66 100644
--- a/web/src/stream_list.ts
+++ b/web/src/stream_list.ts
@@ -1455,6 +1455,11 @@ export function clear_search(): void {
export let scroll_stream_into_view = function ($stream_li: JQuery | undefined = undefined): void {
if ($stream_li === undefined) {
+ if (narrow_state.filter()?.terms_with_operator("topic").length === 1) {
+ topic_list.left_sidebar_scroll_zoomed_in_topic_into_view();
+ return;
+ }
+
$stream_li = get_current_stream_li();
if ($stream_li === undefined) {
return;