summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-01-06 16:42:56 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-01-06 18:29:08 +0100
commit5af6f6528ba05974edd359833194c6f1dd3e1c96 (patch)
treec867831072eb83843b44edc142e0f59a64270acc /resources
parentinvert timeline (diff)
downloadnheko-5af6f6528ba05974edd359833194c6f1dd3e1c96.tar.xz
Use fetchMore for native lazy loading of item model data
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/TimelineView.qml6
1 files changed, 1 insertions, 5 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml
index 6bc2eb53..18ae3793 100644
--- a/resources/qml/TimelineView.qml
+++ b/resources/qml/TimelineView.qml
@@ -93,13 +93,9 @@ Item {
 					currentIndex = newIndex
 					model.currentIndex = newIndex
 				}
-
-				if (contentHeight < height && model) {
-					model.fetchHistory();
-				}
 			}
 
-			onAtYBeginningChanged: if (atYBeginning) { chat.model.currentIndex = 0; chat.currentIndex = 0; model.fetchHistory(); }
+			onAtYBeginningChanged: if (atYBeginning) { chat.model.currentIndex = 0; chat.currentIndex = 0; }
 
 			function updatePosition() {
 				for (var y = chat.contentY + chat.height; y > chat.height; y -= 9) {