diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 914f26e63d..4d57f42b18 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -654,9 +654,11 @@ public class FragmentMessages extends FragmentEx { for (long id : ids) { EntityMessage message = db.message().getMessage(id); - db.message().setMessageUiSeen(message.id, seen); - db.message().setMessageUiIgnored(message.id, true); - EntityOperation.queue(db, message, EntityOperation.SEEN, seen); + if (message.ui_seen != seen) { + db.message().setMessageUiSeen(message.id, seen); + db.message().setMessageUiIgnored(message.id, true); + EntityOperation.queue(db, message, EntityOperation.SEEN, seen); + } } db.setTransactionSuccessful();