Move: mark read / unflag operation

This commit is contained in:
M66B 2022-06-13 10:36:16 +02:00
parent cd13f1096f
commit eafc005367
1 changed files with 2 additions and 2 deletions

View File

@ -244,9 +244,9 @@ public class EntityOperation {
if (autoread || autounflag || reset_importance)
for (EntityMessage similar : db.message().getMessagesBySimilarity(message.account, message.id, message.msgid)) {
if (autoread)
db.message().setMessageUiSeen(similar.id, true);
queue(context, similar, SEEN, true);
if (autounflag)
db.message().setMessageUiFlagged(similar.id, false, null);
queue(context, similar, FLAG, false);
if (reset_importance) {
db.message().setMessageImportance(similar.id, null);
queue(context, similar, KEYWORD, MessageHelper.FLAG_LOW_IMPORTANCE, false);