mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 10:35:15 +01:00
Allow configuring account without drafts folder
This commit is contained in:
@@ -32,18 +32,22 @@ public interface DaoIdentity {
|
||||
@Query(TupleIdentityView.query)
|
||||
LiveData<List<TupleIdentityView>> liveIdentityView();
|
||||
|
||||
@Query("SELECT identity.*, account.name AS accountName FROM identity" +
|
||||
" JOIN account ON account.id = identity.account")
|
||||
@Query("SELECT identity.*, account.name AS accountName, folder.id AS drafts" +
|
||||
" FROM identity" +
|
||||
" JOIN account ON account.id = identity.account" +
|
||||
" LEFT JOIN folder ON folder.account = account.id AND folder.type = '" + EntityFolder.DRAFTS + "'")
|
||||
LiveData<List<TupleIdentityEx>> liveIdentities();
|
||||
|
||||
@Query("SELECT identity.*, account.name AS accountName FROM identity" +
|
||||
@Query("SELECT identity.*, account.name AS accountName, folder.id AS drafts" +
|
||||
" FROM identity" +
|
||||
" JOIN account ON account.id = identity.account" +
|
||||
" JOIN folder ON folder.account = identity.account AND folder.type = '" + EntityFolder.DRAFTS + "'" +
|
||||
" AND identity.synchronize" +
|
||||
" AND account.synchronize")
|
||||
LiveData<List<TupleIdentityEx>> liveComposableIdentities();
|
||||
|
||||
@Query("SELECT identity.*, account.name AS accountName FROM identity" +
|
||||
@Query("SELECT identity.*, account.name AS accountName, folder.id AS drafts" +
|
||||
" FROM identity" +
|
||||
" JOIN account ON account.id = identity.account" +
|
||||
" JOIN folder ON folder.account = identity.account AND folder.type = '" + EntityFolder.DRAFTS + "'" +
|
||||
" WHERE (:account IS NULL OR account.id = :account)" +
|
||||
|
||||
Reference in New Issue
Block a user