Fixed moving draft across accounts

This commit is contained in:
M66B 2019-04-28 09:00:39 +02:00
parent a7f495790b
commit 60a3f3d887
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}