mirror of https://github.com/M66B/FairEmail.git
Optimization
This commit is contained in:
parent
a9d1c4ebe3
commit
d40b138c84
|
@ -654,9 +654,11 @@ public class FragmentMessages extends FragmentEx {
|
||||||
|
|
||||||
for (long id : ids) {
|
for (long id : ids) {
|
||||||
EntityMessage message = db.message().getMessage(id);
|
EntityMessage message = db.message().getMessage(id);
|
||||||
db.message().setMessageUiSeen(message.id, seen);
|
if (message.ui_seen != seen) {
|
||||||
db.message().setMessageUiIgnored(message.id, true);
|
db.message().setMessageUiSeen(message.id, seen);
|
||||||
EntityOperation.queue(db, message, EntityOperation.SEEN, seen);
|
db.message().setMessageUiIgnored(message.id, true);
|
||||||
|
EntityOperation.queue(db, message, EntityOperation.SEEN, seen);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
db.setTransactionSuccessful();
|
db.setTransactionSuccessful();
|
||||||
|
|
Loading…
Reference in New Issue