From 5d0eb6a2abc20219878b3cb66ae66356be96b0d0 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 19 Oct 2018 06:40:32 +0000 Subject: [PATCH] Set ignore when setting seen --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 1 + app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index dbbd8e0c..a80c5c0e 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -924,6 +924,7 @@ public class FragmentMessages extends FragmentEx { if (!message.ui_seen && !EntityFolder.OUTBOX.equals(folder.type)) { db.message().setMessageUiSeen(message.id, true); + db.message().setMessageUiIgnored(message.id, true); EntityOperation.queue(db, message, EntityOperation.SEEN, true); } diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index d0caa957..21c3bd2d 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -265,6 +265,7 @@ public class ServiceSynchronize extends LifecycleService { EntityMessage message = db.message().getMessage(id); if ("seen".equals(action)) { db.message().setMessageUiSeen(message.id, true); + db.message().setMessageUiIgnored(message.id, true); EntityOperation.queue(db, message, EntityOperation.SEEN, true); } else if ("trash".equals(action)) { db.message().setMessageUiHide(message.id, true);