Small improvement, cleanup

This commit is contained in:
M66B 2019-08-29 17:51:53 +02:00
parent 62644d0270
commit da9cb9ef3c
1 changed files with 3 additions and 6 deletions

View File

@ -179,14 +179,11 @@ public interface DaoFolder {
@Query("SELECT folder.* FROM folder" +
" JOIN account ON account.id = folder.account" +
" WHERE `primary` AND type = '" + EntityFolder.DRAFTS + "'")
" WHERE account.synchronize" +
" AND account.`primary`" +
" AND type = '" + EntityFolder.DRAFTS + "'")
EntityFolder getPrimaryDrafts();
@Query("SELECT folder.* FROM folder" +
" JOIN account ON account.id = folder.account" +
" WHERE `primary` AND type = '" + EntityFolder.ARCHIVE + "'")
EntityFolder getPrimaryArchive();
@Query("SELECT * FROM folder WHERE type = '" + EntityFolder.OUTBOX + "'")
EntityFolder getOutbox();