Skip to content

Commit

Permalink
Search: hidden: find unsnoozed
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Nov 13, 2024
1 parent 5eef934 commit 1adee6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ private static boolean matchMessage(Context context, EntityMessage message, Sear
}

if (criteria.with_hidden) {
if (message.ui_snoozed == null)
if (message.ui_snoozed == null && !message.ui_unsnoozed)
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/email/DaoMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ DataSource.Factory<Integer, TupleMessageEx> pagedThread(
" AND (:folder IS NULL OR folder = :folder)" +
" AND (NOT :unseen OR NOT ui_seen)" +
" AND (NOT :flagged OR ui_flagged)" +
" AND (NOT :hidden OR NOT ui_snoozed IS NULL)" +
" AND (NOT :hidden OR NOT ui_snoozed IS NULL OR ui_unsnoozed)" +
" AND (NOT :encrypted OR ui_encrypt > 0)" +
" AND (NOT :with_attachments OR attachments > 0)" +
" AND (NOT :with_notes OR NOT `notes` IS NULL)" +
Expand Down

0 comments on commit 1adee6d

Please sign in to comment.