From 7f92484b27935214b53bae9cf18e1cf6aa41d104 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 17 Nov 2024 16:15:02 +0100 Subject: [PATCH] Mark similar local messages read --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 3ed42afbea..2368c7db17 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -8237,7 +8237,8 @@ public class FragmentMessages extends FragmentBase if (account.protocol != EntityAccount.TYPE_IMAP || message.uid != null) EntityOperation.queue(context, message, EntityOperation.SEEN, true); else - db.message().setMessageUiSeen(message.id, true); + for (EntityMessage similar : db.message().getMessagesBySimilarity(message.account, message.id, message.msgid, message.hash)) + db.message().setMessageUiSeen(similar.id, true); } if (account.protocol != EntityAccount.TYPE_IMAP || message.uid != null) {