mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
Allow excluding trash/spam for account search
This commit is contained in:
@@ -225,7 +225,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
|
||||
" matches=" + (state.matches == null ? null : state.matches.size()));
|
||||
|
||||
long[] exclude = new long[0];
|
||||
if (account == null) {
|
||||
if (folder == null) {
|
||||
List<Long> folders = new ArrayList<>();
|
||||
if (!criteria.in_trash) {
|
||||
List<EntityFolder> trash = db.folder().getFoldersByType(EntityFolder.TRASH);
|
||||
|
||||
@@ -227,7 +227,7 @@ public class FragmentDialogSearch extends FragmentDialogBase {
|
||||
cbHeaders.setVisibility(View.VISIBLE);
|
||||
cbHtml.setVisibility(View.VISIBLE);
|
||||
}
|
||||
if (account < 0) {
|
||||
if (folder < 0) {
|
||||
cbSearchTrash.setVisibility(View.VISIBLE);
|
||||
cbSearchJunk.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user