Optimization

This commit is contained in:
M66B 2018-11-23 09:34:43 +01:00
parent a9d1c4ebe3
commit d40b138c84
1 changed files with 5 additions and 3 deletions

View File

@ -654,10 +654,12 @@ public class FragmentMessages extends FragmentEx {
for (long id : ids) {
EntityMessage message = db.message().getMessage(id);
if (message.ui_seen != seen) {
db.message().setMessageUiSeen(message.id, seen);
db.message().setMessageUiIgnored(message.id, true);
EntityOperation.queue(db, message, EntityOperation.SEEN, seen);
}
}
db.setTransactionSuccessful();
} finally {