Make sure drafts is added before moving

This commit is contained in:
M66B 2020-05-03 11:01:50 +02:00
parent c2fb8abd07
commit aa192ef3a7
1 changed files with 3 additions and 1 deletions

View File

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