Added search options to exclude trash and junk folder

This commit is contained in:
M66B
2021-06-16 18:14:45 +02:00
parent b52c3171c4
commit bce33a421a
7 changed files with 94 additions and 6 deletions

View File

@@ -226,6 +226,9 @@ public interface DaoFolder {
" WHERE account = :account AND type = :type")
EntityFolder getFolderByType(long account, String type);
@Query("SELECT * FROM folder WHERE type = :type")
List<EntityFolder> getFoldersByType(String type);
@Query("SELECT folder.* FROM folder" +
" JOIN account ON account.id = folder.account" +
" WHERE account.synchronize" +