From 9f881da83231a1ee99f16667611d18c75b53bf7b Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 22 Nov 2018 14:06:47 +0100 Subject: [PATCH] Low light archived messages only --- app/src/main/java/eu/faircode/email/DaoMessage.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/DaoMessage.java b/app/src/main/java/eu/faircode/email/DaoMessage.java index 120d7f3cca..8efffc3706 100644 --- a/app/src/main/java/eu/faircode/email/DaoMessage.java +++ b/app/src/main/java/eu/faircode/email/DaoMessage.java @@ -109,9 +109,7 @@ public interface DaoMessage { ", CASE WHEN message.ui_flagged THEN 0 ELSE 1 END AS unflagged" + ", (SELECT COUNT(a.id) FROM attachment a WHERE a.message = message.id) AS attachments" + - ", ((folder.type = '" + EntityFolder.ARCHIVE + "' " + - " OR folder.type = '" + EntityFolder.SENT + "')" + - " AND EXISTS (" + + ", (folder.type = '" + EntityFolder.ARCHIVE + "' AND EXISTS (" + " SELECT * FROM message m1" + " JOIN folder f1 ON f1.id = m1.folder" + " WHERE m1.id <> message.id" +