mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Only delete when not saving drafts
This commit is contained in:
parent
e21141dd35
commit
8f4aae64dc
1 changed files with 1 additions and 1 deletions
|
@ -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<>();
|
||||
|
|
Loading…
Reference in a new issue