From 24297ee704ad90663ff2a2c1719b2efac826c5b2 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 11 May 2020 09:12:29 +0200 Subject: [PATCH] Copy from Gmail archive folder --- app/src/main/java/eu/faircode/email/EntityOperation.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/EntityOperation.java b/app/src/main/java/eu/faircode/email/EntityOperation.java index 529f82ed5d..413f7af669 100644 --- a/app/src/main/java/eu/faircode/email/EntityOperation.java +++ b/app/src/main/java/eu/faircode/email/EntityOperation.java @@ -194,6 +194,10 @@ public class EntityOperation { EntityFolder.TRASH.equals(target.type) || EntityFolder.JUNK.equals(target.type)) db.message().setMessageUiHide(message.id, true); + if (account != null && account.isGmail() && + EntityFolder.ARCHIVE.equals(source.type)) + name = COPY; + if (message.ui_snoozed != null && (EntityFolder.ARCHIVE.equals(target.type) || EntityFolder.TRASH.equals(target.type))) { message.ui_snoozed = null;