From 407236781262eacd261da8a2f95079613e292c97 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 12 Jun 2019 19:50:44 +0200 Subject: [PATCH] Fixed marking seen on moving thread by rule --- app/src/main/java/eu/faircode/email/EntityRule.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/EntityRule.java b/app/src/main/java/eu/faircode/email/EntityRule.java index 1b55a586f1..b6bcf0ad44 100644 --- a/app/src/main/java/eu/faircode/email/EntityRule.java +++ b/app/src/main/java/eu/faircode/email/EntityRule.java @@ -252,10 +252,13 @@ public class EntityRule { message.account, message.thread, thread ? null : message.id, message.folder); for (EntityMessage threaded : messages) { if (seen) - onActionSeen(context, threaded, true); + EntityOperation.queue(context, threaded, EntityOperation.SEEN, seen); EntityOperation.queue(context, threaded, EntityOperation.MOVE, target, false); } + + if (seen) + message.seen = true; } private void onActionCopy(Context context, EntityMessage message, JSONObject jargs) throws JSONException {