mirror of https://github.com/M66B/FairEmail.git
Keep messages IDs
This commit is contained in:
parent
13417b132f
commit
04e91b1954
|
@ -1658,7 +1658,6 @@ public class FragmentCompose extends FragmentEx {
|
||||||
draft.id = id;
|
draft.id = id;
|
||||||
draft.account = aid;
|
draft.account = aid;
|
||||||
draft.folder = db.folder().getFolderByType(aid, EntityFolder.DRAFTS).id;
|
draft.folder = db.folder().getFolderByType(aid, EntityFolder.DRAFTS).id;
|
||||||
draft.msgid = EntityMessage.generateMessageId();
|
|
||||||
draft.content = true;
|
draft.content = true;
|
||||||
draft.ui_hide = false;
|
draft.ui_hide = false;
|
||||||
EntityOperation.queue(db, draft, EntityOperation.ADD);
|
EntityOperation.queue(db, draft, EntityOperation.ADD);
|
||||||
|
@ -1771,7 +1770,6 @@ public class FragmentCompose extends FragmentEx {
|
||||||
draft.id = null;
|
draft.id = null;
|
||||||
draft.folder = db.folder().getOutbox().id;
|
draft.folder = db.folder().getOutbox().id;
|
||||||
draft.uid = null;
|
draft.uid = null;
|
||||||
draft.msgid = EntityMessage.generateMessageId();
|
|
||||||
draft.ui_hide = false;
|
draft.ui_hide = false;
|
||||||
draft.id = db.message().insertMessage(draft);
|
draft.id = db.message().insertMessage(draft);
|
||||||
draft.write(getContext(), body);
|
draft.write(getContext(), body);
|
||||||
|
|
Loading…
Reference in New Issue