Check primary drafts on accounts setup

This commit is contained in:
M66B
2019-08-30 08:10:28 +02:00
parent 856066c941
commit 6fe104a3bc
2 changed files with 18 additions and 13 deletions

View File

@@ -120,13 +120,6 @@ public interface DaoFolder {
" GROUP BY folder.id")
LiveData<List<TupleFolderNav>> liveNavigation();
@Query("SELECT folder.* FROM folder" +
" JOIN account ON account.id = folder.account" +
" WHERE account.synchronize" +
" AND account.`primary`" +
" AND folder.type = '" + EntityFolder.DRAFTS + "'")
LiveData<EntityFolder> livePrimaryDrafts();
@Query("SELECT COUNT(id) FROM folder" +
" WHERE sync_state = 'syncing'" +
" AND folder.type <> '" + EntityFolder.OUTBOX + "'")