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
1 changed files with 6 additions and 0 deletions

View File

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