Prevent orphan drafts

pull/194/merge
M66B 3 years ago
parent 94a9d60d2e
commit 2139aee208

@ -1662,7 +1662,7 @@ class Core {
} }
if (perform_expunge) { if (perform_expunge) {
if (expunge(context, ifolder, deleted)) if (deleted.size() == 0 || expunge(context, ifolder, deleted))
db.message().deleteMessage(message.id); db.message().deleteMessage(message.id);
} else { } else {
if (deleted.size() > 0) if (deleted.size() > 0)

Loading…
Cancel
Save