Skip update draft on delete

pull/147/head
M66B 6 years ago
parent 4a7974e7e2
commit 5b3626bebf

@ -1921,6 +1921,7 @@ public class FragmentCompose extends FragmentEx {
Log.i("Load action id=" + draft.id + " action=" + action);
if (action != R.id.action_delete) {
// Move draft to new account
if (draft.account != aid && aid >= 0) {
Long uid = draft.uid;
@ -1946,7 +1947,7 @@ public class FragmentCompose extends FragmentEx {
EntityOperation.queue(context, db, draft, EntityOperation.ADD);
}
// Convert data
// Get data
InternetAddress afrom[] = (identity == null ? null : new InternetAddress[]{new InternetAddress(identity.email, identity.name)});
InternetAddress ato[] = null;
@ -2008,6 +2009,7 @@ public class FragmentCompose extends FragmentEx {
db.message().setMessageContent(
draft.id, true, HtmlHelper.getPreview(body));
}
}
// Execute action
if (action == R.id.action_delete) {

Loading…
Cancel
Save