From ec793d30f69d34062c2b4e1d56c9b7fe8ca1883e Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 10 Jan 2019 17:13:46 +0000 Subject: [PATCH] Ignore on seen only --- app/src/main/java/eu/faircode/email/EntityOperation.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/EntityOperation.java b/app/src/main/java/eu/faircode/email/EntityOperation.java index 5a5fe0ae0d..ebd0da7a7b 100644 --- a/app/src/main/java/eu/faircode/email/EntityOperation.java +++ b/app/src/main/java/eu/faircode/email/EntityOperation.java @@ -129,9 +129,11 @@ public class EntityOperation { private static void queue(Context context, DB db, EntityMessage message, String name, JSONArray jargs) { try { if (SEEN.equals(name)) { + boolean seen = jargs.getBoolean(0); for (EntityMessage similar : db.message().getMessageByMsgId(message.account, message.msgid)) { db.message().setMessageUiSeen(similar.id, jargs.getBoolean(0)); - db.message().setMessageUiIgnored(similar.id, true); + if (seen) + db.message().setMessageUiIgnored(similar.id, true); } } else if (FLAG.equals(name))