From c6ed38bafeef64deacac7218542fce1053e6a4fc Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 16 Jul 2020 19:42:17 +0200 Subject: [PATCH] Revert "Delete local message on move" This reverts commit 9a1c5ca083e7cad9b86b5b1a04be499d007e030c. --- app/src/main/java/eu/faircode/email/Core.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 443ad889fd..79f0098d0f 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -990,10 +990,8 @@ class Core { // Delete source if (!copy) { try { - for (Message imessage : map.keySet()) { - db.message().deleteMessage(map.get(imessage).id); + for (Message imessage : map.keySet()) imessage.setFlag(Flags.Flag.DELETED, true); - } } catch (MessageRemovedException ignored) { } ifolder.expunge();