mirror of https://github.com/M66B/FairEmail.git
Simplification
This commit is contained in:
parent
976efd379a
commit
7956e1a0e0
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue