From e95228ee47421720f4f7424a34bbfabd90b03d02 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 29 Sep 2019 12:21:09 +0200 Subject: [PATCH] Prevent deleting trash on move --- app/src/main/java/eu/faircode/email/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 33e0abb24d..919021b48b 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -847,7 +847,7 @@ class Core { } // Delete source - if (!copy) { + if (!copy && !EntityFolder.TRASH.equals(folder.type)) { try { for (Message imessage : map.keySet()) imessage.setFlag(Flags.Flag.DELETED, true);