Synchronizing accounts only

This commit is contained in:
M66B 2022-05-06 08:14:57 +02:00
parent 227eb79f9a
commit 6f93205376
1 changed files with 5 additions and 2 deletions

View File

@ -120,8 +120,11 @@ public interface DaoFolder {
" GROUP BY folder.id")
LiveData<List<TupleFolderEx>> liveUnified(String type);
@Query("SELECT account, id AS folder, unified, sync_state FROM folder" +
" WHERE sync_state IS NOT NULL" +
@Query("SELECT folder.account, folder.id AS folder, unified, sync_state" +
" FROM folder" +
" JOIN account ON account.id = folder.account" +
" WHERE account.`synchronize`" +
" AND sync_state IS NOT NULL" +
" AND folder.type <> '" + EntityFolder.OUTBOX + "'")
LiveData<List<TupleFolderSync>> liveSynchronizing();