Browse Source

Identities will only synchronize of account is synchronizing

main
M66B 6 years ago
parent
commit
bed0bd84c1
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      app/src/main/java/eu/faircode/email/DaoIdentity.java

+ 4
- 1
app/src/main/java/eu/faircode/email/DaoIdentity.java View File

@ -33,7 +33,10 @@ public interface DaoIdentity {
" JOIN account ON account.id = identity.account") " JOIN account ON account.id = identity.account")
LiveData<List<TupleIdentityEx>> liveIdentities(); LiveData<List<TupleIdentityEx>> liveIdentities();
@Query("SELECT * FROM identity WHERE synchronize = :synchronize")
@Query("SELECT identity.* FROM identity" +
" JOIN account ON account.id = identity.account" +
" WHERE account.synchronize = :synchronize" +
" AND identity.synchronize = :synchronize")
LiveData<List<EntityIdentity>> liveIdentities(boolean synchronize); LiveData<List<EntityIdentity>> liveIdentities(boolean synchronize);
@Query("SELECT * FROM identity") @Query("SELECT * FROM identity")


Loading…
Cancel
Save