1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-21 23:32:51 +00:00

Small improvement

This commit is contained in:
M66B 2024-11-17 17:44:00 +01:00
parent 81f875f620
commit 4dabcef1e9

View file

@ -8237,8 +8237,10 @@ public class FragmentMessages extends FragmentBase
if (account.protocol != EntityAccount.TYPE_IMAP || message.uid != null)
EntityOperation.queue(context, message, EntityOperation.SEEN, true);
else
for (EntityMessage similar : db.message().getMessagesBySimilarity(message.account, message.id, message.msgid, message.hash))
for (EntityMessage similar : db.message().getMessagesBySimilarity(message.account, message.id, message.msgid, message.hash)) {
db.message().setMessageSeen(similar.id, true);
db.message().setMessageUiSeen(similar.id, true);
}
}
if (account.protocol != EntityAccount.TYPE_IMAP || message.uid != null) {