summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-11-10 00:30:02 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:07:15 +0100
commitc424e397b01d8191568f951bdb754e1957681fb8 (patch)
treee23df7e54893c6e40ce5e92f42f9ee3344f22bfb /resources/qml
parentUpdate translations (diff)
downloadnheko-c424e397b01d8191568f951bdb754e1957681fb8.tar.xz
Add loading spinner and restore message send queue
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/TimelineView.qml13
1 files changed, 8 insertions, 5 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml
index b25b3a7c..3bbaa020 100644
--- a/resources/qml/TimelineView.qml
+++ b/resources/qml/TimelineView.qml
@@ -19,13 +19,20 @@ Item {
 		color: colors.window
 
 		Text {
-			visible: !timelineManager.timeline
+			visible: !timelineManager.timeline && !timelineManager.isInitialSync
 			anchors.centerIn: parent
 			text: qsTr("No room open")
 			font.pointSize: 24
 			color: colors.windowText
 		}
 
+		BusyIndicator {
+			anchors.centerIn: parent
+			running: timelineManager.isInitialSync
+			height: 200
+			width: 200
+		}
+
 		ListView {
 			id: chat
 
@@ -47,10 +54,6 @@ Item {
 					} else {
 						positionViewAtIndex(model.currentIndex, ListView.End)
 					}
-
-					//if (contentHeight < height) {
-					//	model.fetchHistory();
-					//}
 				}
 			}