diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index e38ae22fc7..c5f80939dc 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -3852,9 +3852,13 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. if (!message.content) EntityOperation.queue(context, message, EntityOperation.BODY); - int ops = db.operation().getOperationCount(message.folder, message.id, EntityOperation.SEEN); - if (account.auto_seen && !folder.read_only && (!message.seen || ops > 0)) - EntityOperation.queue(context, message, EntityOperation.SEEN, true); + if (!folder.read_only) + if (account.auto_seen) { + int ops = db.operation().getOperationCount(message.folder, message.id, EntityOperation.SEEN); + if (!message.seen || ops > 0) + EntityOperation.queue(context, message, EntityOperation.SEEN, true); + } else + db.message().setMessageUiIgnored(message.id, true); } db.setTransactionSuccessful();