Full search on device

This commit is contained in:
M66B
2019-01-26 15:49:49 +00:00
parent bd07b7b80e
commit b0a605ce9b
3 changed files with 14 additions and 19 deletions

View File

@@ -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" +