1
0
Fork 0
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:
M66B 2019-11-23 13:00:28 +01:00
parent f4b96bc5fe
commit e7d3716084

View file

@ -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);