mirror of https://github.com/M66B/FairEmail.git
Fixed showing unusable identities
This commit is contained in:
parent
92c96316b2
commit
1c9d6c250c
|
@ -37,7 +37,7 @@ 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 AND folder.type = '" + EntityFolder.DRAFTS + "'" +
|
||||
" WHERE :account IS NULL OR identity.account = :account" +
|
||||
" WHERE (:account IS NULL OR identity.account = :account)" +
|
||||
" AND identity.synchronize" +
|
||||
" AND account.synchronize")
|
||||
List<TupleIdentityEx> getComposableIdentities(Long account);
|
||||
|
@ -45,7 +45,7 @@ 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 AND folder.type = '" + EntityFolder.DRAFTS + "'" +
|
||||
" WHERE :account IS NULL OR identity.account = :account" +
|
||||
" WHERE (:account IS NULL OR identity.account = :account)" +
|
||||
" AND identity.synchronize" +
|
||||
" AND account.synchronize")
|
||||
LiveData<List<TupleIdentityEx>> liveComposableIdentities(Long account);
|
||||
|
|
Loading…
Reference in New Issue