From 1f6c5f2021e7dbf238ecb6fe529e4017c5eebf1e Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 13 Feb 2021 19:44:16 +0100 Subject: [PATCH] Unflag auto archived messages --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index b39ef8c154..6eed37e24d 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -4913,8 +4913,11 @@ public class FragmentCompose extends FragmentBase { archive != null && !archive.id.equals(threaded.folder) && !EntityFolder.isOutgoing(source.type) && !EntityFolder.TRASH.equals(source.type) && - !EntityFolder.JUNK.equals(source.type)) - EntityOperation.queue(context, threaded, EntityOperation.MOVE, archive.id, repliedto); + !EntityFolder.JUNK.equals(source.type)) { + if (repliedto) + EntityOperation.queue(context, threaded, EntityOperation.SEEN, true); + EntityOperation.queue(context, threaded, EntityOperation.MOVE, archive.id); + } } } }