mirror of https://github.com/M66B/FairEmail.git
Only delete when not saving drafts
This commit is contained in:
parent
e21141dd35
commit
8f4aae64dc
|
@ -5940,7 +5940,7 @@ public class FragmentCompose extends FragmentBase {
|
||||||
dirty = true;
|
dirty = true;
|
||||||
EntityFolder trash = db.folder().getFolderByType(draft.account, EntityFolder.TRASH);
|
EntityFolder trash = db.folder().getFolderByType(draft.account, EntityFolder.TRASH);
|
||||||
EntityFolder drafts = db.folder().getFolderByType(draft.account, EntityFolder.DRAFTS);
|
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);
|
EntityOperation.queue(context, draft, EntityOperation.DELETE);
|
||||||
else {
|
else {
|
||||||
Map<String, String> c = new HashMap<>();
|
Map<String, String> c = new HashMap<>();
|
||||||
|
|
Loading…
Reference in New Issue