Only delete when not saving drafts

This commit is contained in:
M66B 2022-10-20 14:56:53 +02:00
parent e21141dd35
commit 8f4aae64dc
1 changed files with 1 additions and 1 deletions

View File

@ -5940,7 +5940,7 @@ public class FragmentCompose extends FragmentBase {
dirty = true;
EntityFolder trash = db.folder().getFolderByType(draft.account, EntityFolder.TRASH);
EntityFolder drafts = db.folder().getFolderByType(draft.account, EntityFolder.DRAFTS);
if (empty || trash == null || discard_delete || (drafts != null && drafts.local))
if (empty || trash == null || discard_delete || !save_drafts || (drafts != null && drafts.local))
EntityOperation.queue(context, draft, EntityOperation.DELETE);
else {
Map<String, String> c = new HashMap<>();