Set ignore when setting seen

This commit is contained in:
M66B 2018-10-19 06:40:32 +00:00
parent ec4e1d2400
commit 5d0eb6a2ab
2 changed files with 2 additions and 0 deletions

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);
}

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);