From 1a5fa5e83073fb3e18c5213042ed0e07f3cad284 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 25 Jun 2019 10:01:39 +0200 Subject: [PATCH] Fixed navigation count --- 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 9cab8f924e..b94d58c602 100644 --- a/app/src/main/java/eu/faircode/email/DaoAccount.java +++ b/app/src/main/java/eu/faircode/email/DaoAccount.java @@ -44,7 +44,7 @@ public interface DaoAccount { LiveData> liveSynchronizingAccounts(); @Query("SELECT account.*" + - ", (SELECT COUNT(message.id)" + + ", (SELECT COUNT(DISTINCT CASE WHEN message.msgid IS NULL THEN message.id ELSE message.msgid END)" + " FROM message" + " JOIN folder ON folder.id = message.folder" + " WHERE message.account = account.id" +