Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
topic_list: Fix resolved topic filter persistent even when not in view.
Pratik Chanda24c7a7377560
diff --git a/web/src/topic_list.ts b/web/src/topic_list.tsindex 358ee7a67fe..a2e6d94c2a3 100644--- a/web/src/topic_list.ts+++ b/web/src/topic_list.ts@@ -51,6 +51,7 @@ function update_widget_for_stream(stream_id: number): void {export function clear(): void {popover_menus.get_topic_menu_popover()?.hide();+ topic_filter_pill_widget?.clear(true);for (const widget of active_widgets.values()) {widget.remove();@@ -81,6 +82,10 @@ export function zoom_out(): void {assert(widget !== undefined);const parent_widget = widget.get_parent();+ // Reset the resolved topic filter since we moved away+ // from the view.+ topic_filter_pill_widget?.clear(true);+rebuild_left_sidebar(parent_widget, stream_id);}