Browse Source

Mark seen when unseen only

main
M66B 6 years ago
parent
commit
9de799d92d
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      app/src/main/java/eu/faircode/email/AdapterMessage.java

+ 4
- 2
app/src/main/java/eu/faircode/email/AdapterMessage.java View File

@ -564,8 +564,10 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
if (!message.content)
EntityOperation.queue(db, message, EntityOperation.BODY);
db.message().setMessageUiSeen(message.id, true);
EntityOperation.queue(db, message, EntityOperation.SEEN, true);
if (!message.ui_seen) {
db.message().setMessageUiSeen(message.id, true);
EntityOperation.queue(db, message, EntityOperation.SEEN, true);
}
}
db.setTransactionSuccessful();


Loading…
Cancel
Save