1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 20:54:34 +00:00

Prevent orphan drafts

This commit is contained in:
M66B 2021-11-29 16:12:28 +01:00
parent 94a9d60d2e
commit 2139aee208

View file

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