mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 23:50:58 +01:00
Undo query changes
This commit is contained in:
@@ -36,9 +36,8 @@ public interface DaoIdentity {
|
||||
|
||||
@Query("SELECT identity.*, account.name AS accountName FROM identity" +
|
||||
" JOIN account ON account.id = identity.account" +
|
||||
" JOIN folder ON folder.account = identity.account" +
|
||||
" JOIN folder ON folder.account = identity.account AND folder.type = '" + EntityFolder.DRAFTS + "'" +
|
||||
" WHERE (:account IS NULL OR identity.account = :account)" +
|
||||
" AND folder.type = '" + EntityFolder.DRAFTS + "'" +
|
||||
" AND identity.synchronize" +
|
||||
" AND account.synchronize" +
|
||||
" ORDER BY account.`order`, account.`primary` DESC, account.name COLLATE NOCASE" +
|
||||
@@ -47,9 +46,8 @@ public interface DaoIdentity {
|
||||
|
||||
@Query("SELECT identity.*, account.name AS accountName FROM identity" +
|
||||
" JOIN account ON account.id = identity.account" +
|
||||
" JOIN folder ON folder.account = identity.account" +
|
||||
" JOIN folder ON folder.account = identity.account AND folder.type = '" + EntityFolder.DRAFTS + "'" +
|
||||
" WHERE (:account IS NULL OR identity.account = :account)" +
|
||||
" AND folder.type = '" + EntityFolder.DRAFTS + "'" +
|
||||
" AND identity.synchronize" +
|
||||
" AND account.synchronize")
|
||||
LiveData<List<TupleIdentityEx>> liveComposableIdentities(Long account);
|
||||
|
||||
Reference in New Issue
Block a user