Set ignore when setting seen

pull/146/head
M66B 6 years ago
parent ec4e1d2400
commit 5d0eb6a2ab

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

@ -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