Make sure drafts is added before moving

pull/178/head
M66B 5 years ago
parent c2fb8abd07
commit aa192ef3a7

@ -3786,8 +3786,10 @@ public class FragmentCompose extends FragmentBase {
EntityFolder trash = db.folder().getFolderByType(draft.account, EntityFolder.TRASH); EntityFolder trash = db.folder().getFolderByType(draft.account, EntityFolder.TRASH);
if (empty || trash == null || discard_delete) if (empty || trash == null || discard_delete)
EntityOperation.queue(context, draft, EntityOperation.DELETE); EntityOperation.queue(context, draft, EntityOperation.DELETE);
else else {
EntityOperation.queue(context, draft, EntityOperation.ADD);
EntityOperation.queue(context, draft, EntityOperation.MOVE, trash.id); EntityOperation.queue(context, draft, EntityOperation.MOVE, trash.id);
}
Handler handler = new Handler(context.getMainLooper()); Handler handler = new Handler(context.getMainLooper());
handler.post(new Runnable() { handler.post(new Runnable() {

Loading…
Cancel
Save