mirror of https://github.com/M66B/FairEmail.git
Optimization
This commit is contained in:
parent
a9d1c4ebe3
commit
d40b138c84
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue