mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-12 03:54:28 +02:00
Make sure drafts is added before moving
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user