Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
topic_list: Rename function to specify use for left sidebar.
Aman Agrawal5ea42823bae7
diff --git a/web/src/stream_list.ts b/web/src/stream_list.tsindex a40ca70e46d..def18d89f84 100644--- a/web/src/stream_list.ts+++ b/web/src/stream_list.ts@@ -759,7 +759,7 @@ export function update_stream_sidebar_for_narrow(filter: Filter): JQuery | undefclear_topics();}- topic_list.rebuild($stream_li, stream_id);+ topic_list.rebuild_left_sidebar($stream_li, stream_id);return $stream_li;}diff --git a/web/src/topic_list.ts b/web/src/topic_list.tsindex 25a244777fb..d5ab4e8f5af 100644--- a/web/src/topic_list.ts+++ b/web/src/topic_list.ts@@ -73,7 +73,7 @@ export function zoom_out(): void {assert(widget !== undefined);const parent_widget = widget.get_parent();- rebuild(parent_widget, stream_id);+ rebuild_left_sidebar(parent_widget, stream_id);}type ListInfoNodeOptions =@@ -251,7 +251,7 @@ export function clear_topic_search(e: JQuery.Event): void {assert(widget !== undefined);const parent_widget = widget.get_parent();- rebuild(parent_widget, stream_id);+ rebuild_left_sidebar(parent_widget, stream_id);}}@@ -276,7 +276,7 @@ export function get_stream_li(): JQuery | undefined {return $stream_li;}-export function rebuild($stream_li: JQuery, stream_id: number): void {+export function rebuild_left_sidebar($stream_li: JQuery, stream_id: number): void {const active_widget = active_widgets.get(stream_id);if (active_widget) {diff --git a/web/tests/stream_list.test.cjs b/web/tests/stream_list.test.cjsindex 9db22192374..e4aeffb748f 100644--- a/web/tests/stream_list.test.cjs+++ b/web/tests/stream_list.test.cjs@@ -475,7 +475,7 @@ test_ui("narrowing", ({mock_template}) => {initialize_stream_data();topic_list.close = noop;- topic_list.rebuild = noop;+ topic_list.rebuild_left_sidebar = noop;topic_list.active_stream_id = noop;topic_list.get_stream_li = noop;$("#streams_header").outerHeight = () => 0;