|
|
|
@ -2254,11 +2254,8 @@ 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)
|
|
|
|
if (empty || trash == null)
|
|
|
|
EntityOperation.queue(context, db, draft, EntityOperation.DELETE);
|
|
|
|
EntityOperation.queue(context, db, draft, EntityOperation.DELETE);
|
|
|
|
else {
|
|
|
|
else
|
|
|
|
EntityOperation.queue(context, db, draft, EntityOperation.SEEN, true);
|
|
|
|
|
|
|
|
draft.ui_seen = true;
|
|
|
|
|
|
|
|
EntityOperation.queue(context, db, draft, EntityOperation.MOVE, trash.id);
|
|
|
|
EntityOperation.queue(context, db, draft, EntityOperation.MOVE, trash.id);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty) {
|
|
|
|
if (!empty) {
|
|
|
|
Handler handler = new Handler(context.getMainLooper());
|
|
|
|
Handler handler = new Handler(context.getMainLooper());
|
|
|
|
|