mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-04 06:20:26 +00:00
Fixed moving draft across accounts
This commit is contained in:
parent
a7f495790b
commit
60a3f3d887
1 changed files with 2 additions and 0 deletions
|
@ -2415,6 +2415,7 @@ public class FragmentCompose extends FragmentBase {
|
||||||
|
|
||||||
// Move draft to new account
|
// Move draft to new account
|
||||||
if (draft.account != aid && aid >= 0) {
|
if (draft.account != aid && aid >= 0) {
|
||||||
|
Log.i("Account changed");
|
||||||
Long uid = draft.uid;
|
Long uid = draft.uid;
|
||||||
String msgid = draft.msgid;
|
String msgid = draft.msgid;
|
||||||
|
|
||||||
|
@ -2440,6 +2441,7 @@ public class FragmentCompose extends FragmentBase {
|
||||||
draft.msgid = EntityMessage.generateMessageId();
|
draft.msgid = EntityMessage.generateMessageId();
|
||||||
draft.content = true;
|
draft.content = true;
|
||||||
draft.ui_hide = false;
|
draft.ui_hide = false;
|
||||||
|
db.message().updateMessage(draft);
|
||||||
EntityOperation.queue(context, db, draft, EntityOperation.ADD);
|
EntityOperation.queue(context, db, draft, EntityOperation.ADD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue