From 0b47b52b1f7a3b28ad9ce6e04b368f42689e67c6 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 12 Sep 2018 16:56:59 +0000 Subject: [PATCH] Separate messages of different accounts --- 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 db5f3750..143b0612 100644 --- a/app/src/main/java/eu/faircode/email/DaoMessage.java +++ b/app/src/main/java/eu/faircode/email/DaoMessage.java @@ -49,7 +49,7 @@ public interface DaoMessage { " JOIN folder ON folder.id = message.folder" + " WHERE account.`synchronize`" + " AND (NOT message.ui_hide OR :debug)" + - " GROUP BY CASE WHEN message.thread IS NULL THEN message.id ELSE message.thread END" + + " GROUP BY account.id, CASE WHEN message.thread IS NULL THEN message.id ELSE message.thread END" + " HAVING SUM(unified) > 0" + " ORDER BY message.received DESC") DataSource.Factory pagedUnifiedInbox(boolean debug);