mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 11:01:23 +01:00
Refactoring composables
This commit is contained in:
@@ -91,12 +91,6 @@ public interface DaoFolder {
|
||||
" WHERE `primary` AND type = '" + EntityFolder.ARCHIVE + "'")
|
||||
LiveData<EntityFolder> livePrimaryArchive();
|
||||
|
||||
@Query("SELECT folder.* FROM folder" +
|
||||
" JOIN account ON account.id = folder.account" +
|
||||
" WHERE folder.type = '" + EntityFolder.DRAFTS + "'" +
|
||||
" AND (account.id = :account OR (:account IS NULL AND account.`primary`))")
|
||||
LiveData<EntityFolder> liveDrafts(Long account);
|
||||
|
||||
@Query("SELECT folder.*, account.name AS accountName, account.color AS accountColor, account.pop as accountPop, account.state AS accountState" +
|
||||
", COUNT(message.id) AS messages" +
|
||||
", SUM(CASE WHEN message.content = 1 THEN 1 ELSE 0 END) AS content" +
|
||||
|
||||
Reference in New Issue
Block a user