From 8ef7c2346bc722e271c24d449839e8ad65673cb7 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 24 Oct 2018 10:20:25 +0000 Subject: [PATCH] Notify connected synchronizing accounts only --- app/src/main/java/eu/faircode/email/DaoAccount.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/DaoAccount.java b/app/src/main/java/eu/faircode/email/DaoAccount.java index c64f464f..4fca6f2a 100644 --- a/app/src/main/java/eu/faircode/email/DaoAccount.java +++ b/app/src/main/java/eu/faircode/email/DaoAccount.java @@ -57,7 +57,7 @@ public interface DaoAccount { LiveData 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" +