mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user