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:
parent
143dcb8c5a
commit
692e54b5eb
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue