Refactoring

This commit is contained in:
M66B 2019-09-10 18:05:27 +02:00
parent b59691875f
commit ff0cbddc7e
1 changed files with 2 additions and 1 deletions

View File

@ -100,9 +100,10 @@ public class EntityOperation {
long folder = message.folder;
try {
if (SEEN.equals(name)) {
boolean seen = jargs.getBoolean(0);
boolean ignore = jargs.optBoolean(1, true);
for (EntityMessage similar : db.message().getMessageByMsgId(message.account, message.msgid)) {
db.message().setMessageUiSeen(similar.id, jargs.getBoolean(0));
db.message().setMessageUiSeen(similar.id, seen);
db.message().setMessageUiIgnored(similar.id, ignore);
}