mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 09:17:58 +00:00
Delete instead of trash drafts set to encrypt
This commit is contained in:
parent
f4b96bc5fe
commit
e7d3716084
1 changed files with 6 additions and 0 deletions
|
@ -118,6 +118,12 @@ public class EntityOperation {
|
|||
for (Object value : values)
|
||||
jargs.put(value);
|
||||
|
||||
if (MOVE.equals(name) && message.encrypt != null && message.encrypt) {
|
||||
EntityFolder folder = db.folder().getFolder(message.folder);
|
||||
if (folder != null && EntityFolder.DRAFTS.equals(folder.type))
|
||||
name = DELETE;
|
||||
}
|
||||
|
||||
if (SEEN.equals(name)) {
|
||||
boolean seen = jargs.getBoolean(0);
|
||||
boolean ignore = jargs.optBoolean(1, true);
|
||||
|
|
Loading…
Reference in a new issue