mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +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
|
||||
if (draft.account != aid && aid >= 0) {
|
||||
Log.i("Account changed");
|
||||
Long uid = draft.uid;
|
||||
String msgid = draft.msgid;
|
||||
|
||||
|
@ -2440,6 +2441,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
draft.msgid = EntityMessage.generateMessageId();
|
||||
draft.content = true;
|
||||
draft.ui_hide = false;
|
||||
db.message().updateMessage(draft);
|
||||
EntityOperation.queue(context, db, draft, EntityOperation.ADD);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue