mirror of https://github.com/M66B/FairEmail.git
Synchronize folders of enabled accounts only
This commit is contained in:
parent
62e1d8eedb
commit
71e83e2c7f
|
@ -39,7 +39,9 @@ public interface DaoFolder {
|
|||
" ORDER BY CASE WHEN folder.type = '" + EntityFolder.USER + "' THEN 1 ELSE 0 END")
|
||||
List<EntityFolder> getFolders(long account, boolean synchronize);
|
||||
|
||||
@Query("SELECT * FROM folder WHERE synchronize")
|
||||
@Query("SELECT folder.* FROM folder" +
|
||||
" JOIN account ON account.id = folder.account" +
|
||||
" WHERE account.synchronize AND folder.synchronize")
|
||||
List<EntityFolder> getFoldersSynchronizing();
|
||||
|
||||
@Query("SELECT folder.* FROM folder" +
|
||||
|
|
Loading…
Reference in New Issue