1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-15 08:29:24 +00:00

Trash drafts as seen

This commit is contained in:
M66B 2018-08-17 07:17:27 +00:00
parent 143dcb8c5a
commit 692e54b5eb

View file

@ -838,9 +838,12 @@ public class FragmentCompose extends FragmentEx {
// Execute action
if (action == R.id.action_trash) {
draft.ui_seen = true;
draft.ui_hide = true;
db.message().updateMessage(draft);
EntityOperation.queue(db, draft, EntityOperation.SEEN, true);
EntityFolder trash = db.folder().getFolderByType(draft.account, EntityFolder.TRASH);
EntityOperation.queue(db, draft, EntityOperation.MOVE, trash.id);