Display read/unread checkmark correctly after incremental update

This commit is contained in:
Sebastian J. Wolf 2020-09-01 22:37:48 +02:00
parent 1a3768b79b
commit d35d15a7e0

View file

@ -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 {