Display read/unread checkmark correctly after incremental update
This commit is contained in:
parent
1a3768b79b
commit
d35d15a7e0
1 changed files with 5 additions and 0 deletions
|
@ -201,6 +201,11 @@ Page {
|
|||
console.log("[ChatPage] Updating last read sent index, new index: " + lastReadSentIndex);
|
||||
chatView.lastReadSentIndex = lastReadSentIndex;
|
||||
}
|
||||
onMessagesIncrementalUpdate: {
|
||||
console.log("Incremental update received. View now has " + chatView.count + " messages, view is on index " + modelIndex + ", own messages were read before index " + lastReadSentIndex);
|
||||
chatView.currentIndex = modelIndex;
|
||||
chatView.lastReadSentIndex = lastReadSentIndex;
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
|
|
Loading…
Reference in a new issue