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:
miruka
2019-04-17 21:08:32 -04:00
parent 9e5e2c6718
commit a0f9acddaa
7 changed files with 129 additions and 49 deletions

View File

@@ -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()
//}
}
}