Prevent orphan drafts

This commit is contained in:
M66B 2020-12-05 10:06:42 +01:00
parent 812e930cf2
commit b6cea4c345
1 changed files with 4 additions and 0 deletions

View File

@ -2699,6 +2699,10 @@ class Core {
message = dup;
process = true;
} else {
if (dup.uid < uid &&
EntityFolder.DRAFTS.equals(folder.type))
EntityOperation.queue(context, dup, EntityOperation.DELETE);
}
}