mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 09:03:56 +02:00
Fixed moving draft across accounts
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user