Skip to content

Commit

Permalink
Small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Nov 17, 2024
1 parent 81f875f commit 4dabcef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/eu/faircode/email/FragmentMessages.java
Original file line number Diff line number Diff line change
Expand Up @@ -8237,8 +8237,10 @@ protected Void onExecute(Context context, Bundle args) {
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) {
Expand Down

0 comments on commit 4dabcef

Please sign in to comment.