mirror of https://github.com/zulip/zulip.git
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:
parent
7ef05316d5
commit
84a066cb48
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue