Refactoring

This commit is contained in:
M66B
2019-07-27 08:13:11 +02:00
parent 0191240a27
commit 78c83b1f35

View File

@@ -2469,10 +2469,10 @@ 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;
// To prevent violating constraints
Long uid = draft.uid;
String msgid = draft.msgid;
draft.uid = null;
draft.msgid = null;
db.message().updateMessage(draft);