From 9b22b8ecf3167f0d4c8e7c50fd15163ee92ca60b Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 25 Nov 2018 17:20:02 +0100 Subject: [PATCH] Unhide archived message on move --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 2a79a33f53..11484fc18a 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1561,6 +1561,9 @@ public class ServiceSynchronize extends LifecycleService { Folder itarget = istore.getFolder(target.name); itarget.appendMessages(new Message[]{icopy}); } + + if (EntityFolder.ARCHIVE.equals(folder.type)) + db.message().setMessageUiHide(message.id, false); } private void doDelete(EntityFolder folder, IMAPFolder ifolder, EntityMessage message, JSONArray jargs, DB db) throws MessagingException, JSONException {