mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +00:00
search-suggestions: Use narrowed_by_pm_reply for empty search query.
Use narrow_state.narrowed_by_pm_reply when getting suggestions for an empty search query to check if the current filter corresponds to a particular direct message conversation.
This commit is contained in:
committed by
Tim Abbott
parent
11dcf3bef7
commit
328f2e217a
@@ -877,7 +877,7 @@ function suggestions_for_empty_search_query(): SuggestionLine[] {
|
||||
get_default_suggestion_line(narrow_state.search_terms()),
|
||||
];
|
||||
}
|
||||
if (narrow_state.pm_emails_string()) {
|
||||
if (narrow_state.narrowed_by_pm_reply()) {
|
||||
return [
|
||||
get_default_suggestion_line([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user