From 72b3c42f45708bfbaab6d267bcae383a3ec34559 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 12 Aug 2023 15:11:18 +0200 Subject: [PATCH] Prevent permanent deletion for mixed selection --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index eb748e930a..2367132c0e 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -10606,7 +10606,7 @@ public class FragmentMessages extends FragmentBase boolean canDelete() { if (read_only) return false; - return (!hasPop || !Boolean.TRUE.equals(leave_deleted) || !isInbox); + return (!hasPop || !Boolean.TRUE.equals(leave_deleted) || (isTrash || isDrafts || isSent)); } boolean canMove() {