From 3aafbcfd5c573582cfbd414f2b55066394fccb82 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 11 Dec 2024 21:07:06 +0100 Subject: [PATCH] Allow trashing/archiving of sent messages when not threading --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index ed2d98a3b4..c1209af733 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -8044,7 +8044,7 @@ public class FragmentMessages extends FragmentBase if (!folder.read_only && !EntityFolder.DRAFTS.equals(folder.type) && !EntityFolder.OUTBOX.equals(folder.type) && - (!EntityFolder.SENT.equals(folder.type) || move_thread_sent) && + (!EntityFolder.SENT.equals(folder.type) || move_thread_sent || !threading) && !EntityFolder.TRASH.equals(folder.type) && !EntityFolder.JUNK.equals(folder.type)) trashable = true; @@ -8053,7 +8053,9 @@ public class FragmentMessages extends FragmentBase snoozable = true; if (!folder.read_only && - !EntityFolder.isOutgoing(folder.type) && + !EntityFolder.DRAFTS.equals(folder.type) && + !EntityFolder.OUTBOX.equals(folder.type) && + (!EntityFolder.SENT.equals(folder.type) || !threading) && !EntityFolder.TRASH.equals(folder.type) && !EntityFolder.JUNK.equals(folder.type) && !EntityFolder.ARCHIVE.equals(folder.type))