From 2462c909750f9c91de1b1cc4be885da6e9b57f5a Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 13 Sep 2018 05:04:21 +0000 Subject: [PATCH] Fixed displaying message thread --- app/src/main/java/eu/faircode/email/DaoMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/DaoMessage.java b/app/src/main/java/eu/faircode/email/DaoMessage.java index 143b0612..5040adf0 100644 --- a/app/src/main/java/eu/faircode/email/DaoMessage.java +++ b/app/src/main/java/eu/faircode/email/DaoMessage.java @@ -78,7 +78,7 @@ public interface DaoMessage { ", account.name AS accountName, account.color AS accountColor" + ", folder.name as folderName, folder.type as folderType" + ", 1 AS count" + - ", SUM(CASE WHEN message.ui_seen THEN 0 ELSE 1 END) as unseen" + + ", CASE WHEN message.ui_seen THEN 0 ELSE 1 END as unseen" + ", (SELECT COUNT(a.id) FROM attachment a WHERE a.message = message.id) AS attachments" + " FROM message" + " LEFT JOIN account ON account.id = message.account" +