mirror of https://github.com/M66B/FairEmail.git
Delete instead of trash drafts set to encrypt
This commit is contained in:
parent
f4b96bc5fe
commit
e7d3716084
|
@ -118,6 +118,12 @@ public class EntityOperation {
|
||||||
for (Object value : values)
|
for (Object value : values)
|
||||||
jargs.put(value);
|
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)) {
|
if (SEEN.equals(name)) {
|
||||||
boolean seen = jargs.getBoolean(0);
|
boolean seen = jargs.getBoolean(0);
|
||||||
boolean ignore = jargs.optBoolean(1, true);
|
boolean ignore = jargs.optBoolean(1, true);
|
||||||
|
|
Loading…
Reference in New Issue