search: Invert double negative with De Morgan's law.

No functional changes. This change is more consistent with how this
expressions looks in other parts of the codebase.
This commit is contained in:
evykassirer 2023-02-22 15:32:08 -08:00 committed by Tim Abbott
parent 7ef05316d5
commit 84a066cb48
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ export function open_search_bar_and_close_narrow_description() {
export function close_search_bar_and_open_narrow_description() {
const filter = narrow_state.filter();
if (!(filter && !filter.is_common_narrow())) {
if (!filter || filter.is_common_narrow()) {
$(".navbar-search").removeClass("expanded");
$("#message_view_header").removeClass("hidden");
}