Browse Source

Trash drafts as seen

main
M66B 6 years ago
parent
commit
692e54b5eb
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/src/main/java/eu/faircode/email/FragmentCompose.java

+ 3
- 0
app/src/main/java/eu/faircode/email/FragmentCompose.java 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);


Loading…
Cancel
Save