From da3c59cc0580785ef1ae3b3b230a7294d64a5f9e Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 26 Apr 2020 17:32:44 +0200 Subject: [PATCH] Small behavior improvement --- app/src/main/java/eu/faircode/email/DaoMessage.java | 3 ++- 1 file changed, 2 insertions(+), 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 89abd77191..ce501398f5 100644 --- a/app/src/main/java/eu/faircode/email/DaoMessage.java +++ b/app/src/main/java/eu/faircode/email/DaoMessage.java @@ -190,7 +190,8 @@ public interface DaoMessage { " AND (NOT :filter_archive OR folder.type <> '" + EntityFolder.ARCHIVE + "' OR (SELECT COUNT(m.id) FROM message m" + " WHERE m.account = message.account" + - " AND (m.hash = message.hash OR m.msgid = message.msgid)) = 1)" + + " AND (m.hash = message.hash OR m.msgid = message.msgid)" + + " AND NOT m.ui_hide) = 1)" + " AND (NOT message.ui_hide OR :debug)" + " ORDER BY CASE WHEN :ascending THEN message.received ELSE -message.received END" + ", CASE" +