topic_list: Filter topics by resolved state in "more topics" view.

Fixes: #24200.
This commit is contained in:
Maneesh Shukla
2025-04-11 14:51:55 +05:30
committed by Tim Abbott
parent 2a325b4530
commit 52b83f7b58
11 changed files with 263 additions and 16 deletions

View File

@@ -424,6 +424,7 @@ export function zoom_in_topics(options: {stream_id: number | undefined}): void {
// Add search box for topics list.
$elt.children("div.bottom_left_row").append($(render_filter_topics()));
$("#left-sidebar-filter-topic-input").trigger("focus");
topic_list.setup_topic_search_typeahead();
} else {
$elt.hide();
}
@@ -769,7 +770,7 @@ export function update_stream_sidebar_for_narrow(filter: Filter): JQuery | undef
// we want to the topics list here.
update_inbox_channel_view_callback(stream_id);
topic_list.rebuild_left_sidebar($stream_li, stream_id);
topic_list.topic_state_typeahead?.lookup(true);
return $stream_li;
}