Load past events when scrolling up
Also keep two nio clients internally: one for loop-syncing, one for the rest; since they can't handle more than one talk at a time.
This commit is contained in:
@@ -26,14 +26,8 @@ Rectangle {
|
||||
// reloaded from network.
|
||||
cacheBuffer: height * 6
|
||||
|
||||
function goToEnd() {
|
||||
messageListView.positionViewAtEnd()
|
||||
//messageListView.flick(0, -messageListView.bottomMargin * 100)
|
||||
onMovementEnded: if (atYBeginning) {
|
||||
Backend.loadPastEvents(chatPage.room.room_id)
|
||||
}
|
||||
|
||||
//Connections {
|
||||
//target: messageListView.model
|
||||
//onChanged: goToEnd()
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user