mirror of https://github.com/M66B/FairEmail.git
Mark seen when unseen only
This commit is contained in:
parent
ef621f3481
commit
9de799d92d
|
@ -564,8 +564,10 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
|
||||||
if (!message.content)
|
if (!message.content)
|
||||||
EntityOperation.queue(db, message, EntityOperation.BODY);
|
EntityOperation.queue(db, message, EntityOperation.BODY);
|
||||||
|
|
||||||
db.message().setMessageUiSeen(message.id, true);
|
if (!message.ui_seen) {
|
||||||
EntityOperation.queue(db, message, EntityOperation.SEEN, true);
|
db.message().setMessageUiSeen(message.id, true);
|
||||||
|
EntityOperation.queue(db, message, EntityOperation.SEEN, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
db.setTransactionSuccessful();
|
db.setTransactionSuccessful();
|
||||||
|
|
Loading…
Reference in New Issue