Browse Source

Set ignore when setting seen

main
M66B 6 years ago
parent
commit
5d0eb6a2ab
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      app/src/main/java/eu/faircode/email/FragmentMessages.java
  2. +1
    -0
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 1
- 0
app/src/main/java/eu/faircode/email/FragmentMessages.java View File

@ -924,6 +924,7 @@ public class FragmentMessages extends FragmentEx {
if (!message.ui_seen && !EntityFolder.OUTBOX.equals(folder.type)) {
db.message().setMessageUiSeen(message.id, true);
db.message().setMessageUiIgnored(message.id, true);
EntityOperation.queue(db, message, EntityOperation.SEEN, true);
}


+ 1
- 0
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -265,6 +265,7 @@ public class ServiceSynchronize extends LifecycleService {
EntityMessage message = db.message().getMessage(id);
if ("seen".equals(action)) {
db.message().setMessageUiSeen(message.id, true);
db.message().setMessageUiIgnored(message.id, true);
EntityOperation.queue(db, message, EntityOperation.SEEN, true);
} else if ("trash".equals(action)) {
db.message().setMessageUiHide(message.id, true);


Loading…
Cancel
Save