Mark seen when unseen only

This commit is contained in:
M66B 2018-10-16 08:48:48 +00:00
parent ef621f3481
commit 9de799d92d
1 changed files with 4 additions and 2 deletions

View File

@ -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();