Browse Source

Notify connected synchronizing accounts only

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

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

@ -57,7 +57,7 @@ public interface DaoAccount {
LiveData<EntityAccount> liveAccount(long id);
@Query("SELECT" +
" (SELECT COUNT(account.id) FROM account WHERE synchronize) AS accounts" +
" (SELECT COUNT(account.id) FROM account WHERE synchronize AND state = 'connected') AS accounts" +
", (SELECT COUNT(operation.id) FROM operation" +
" JOIN message ON message.id = operation.message" +
" JOIN account ON account.id = message.account" +


Loading…
Cancel
Save