mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 10:01:22 +01:00
Full search on device
This commit is contained in:
@@ -51,9 +51,9 @@ public interface DaoFolder {
|
||||
|
||||
@Query("SELECT folder.* FROM folder" +
|
||||
" JOIN account ON account.id = folder.account" +
|
||||
" WHERE ((:folder IS NULL AND unified) OR (NOT :folder is NULL AND folder.id = :folder))" +
|
||||
" WHERE folder.id = :folder" +
|
||||
" AND (:search OR (account.synchronize AND account.browse))")
|
||||
List<EntityFolder> getBrowsableFolders(Long folder, boolean search);
|
||||
EntityFolder getBrowsableFolder(long folder, boolean search);
|
||||
|
||||
@Query("SELECT folder.*, account.name AS accountName, account.color AS accountColor, account.state AS accountState" +
|
||||
", COUNT(message.id) AS messages" +
|
||||
|
||||
Reference in New Issue
Block a user