Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
inbox: Fix left missing list of topics for old channels.
Aman Agrawaldb7bd826a92a
diff --git a/web/src/inbox_ui.ts b/web/src/inbox_ui.tsindex 738887f29a6..52252757b93 100644--- a/web/src/inbox_ui.ts+++ b/web/src/inbox_ui.ts@@ -40,7 +40,7 @@ import * as stream_settings_api from "./stream_settings_api.ts";import * as stream_topic_history from "./stream_topic_history.ts";import * as stream_topic_history_util from "./stream_topic_history_util.ts";import * as sub_store from "./sub_store.ts";-import {TopicListWidget} from "./topic_list.ts";+import * as topic_list from "./topic_list.ts";import * as topic_list_data from "./topic_list_data.ts";import * as unread from "./unread.ts";import * as unread_ops from "./unread_ops.ts";@@ -1122,7 +1122,7 @@ function hide_channel_view_loading_indicator(): void {loading.destroy_indicator($("#inbox-loading-indicator #loading_more_indicator"));}-class InboxTopicListWidget extends TopicListWidget {+class InboxTopicListWidget extends topic_list.TopicListWidget {override topic_list_class_name = "inbox-channel-topic-list";topics_widget?: list_widget.ListWidget<topic_list_data.TopicInfo>;@@ -1166,6 +1166,8 @@ class InboxTopicListWidget extends TopicListWidget {}channel_view_topic_widget.build();+ // Also, update the left sidebar topics list for this channel.+ topic_list.update_widget_for_stream(this.my_stream_id);});} else {show_empty_inbox_channel_view_text(this.is_empty());diff --git a/web/src/topic_list.ts b/web/src/topic_list.tsindex a2e6d94c2a3..8feff208382 100644--- a/web/src/topic_list.ts+++ b/web/src/topic_list.ts@@ -40,7 +40,7 @@ export function update(): void {}}-function update_widget_for_stream(stream_id: number): void {+export function update_widget_for_stream(stream_id: number): void {const widget = active_widgets.get(stream_id);if (widget === undefined) {blueslip.warn("User re-narrowed before topic history was returned.");