From 96c402040d77e063935f20a7cd1558de5c745f98 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Tue, 23 Mar 2021 18:27:42 +0100 Subject: [PATCH] Don't show the typing users while the room is still loading Fixes #316 --- imports/NeoChat/Page/RoomPage.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imports/NeoChat/Page/RoomPage.qml b/imports/NeoChat/Page/RoomPage.qml index 7dd2dd9de..c9500682b 100644 --- a/imports/NeoChat/Page/RoomPage.qml +++ b/imports/NeoChat/Page/RoomPage.qml @@ -94,6 +94,7 @@ Kirigami.ScrollablePage { } Kirigami.PlaceholderMessage { + id: loadingIndicator anchors.centerIn: parent visible: page.currentRoom === null || (messageListView.count === 0 && !page.currentRoom.allHistoryLoaded && !page.currentRoom.isInvite) QQC2.BusyIndicator { @@ -580,7 +581,7 @@ Kirigami.ScrollablePage { header: RowLayout { id: typingNotification - visible: currentRoom && currentRoom.usersTyping.length > 0 + visible: !loadingIndicator.visible && currentRoom && currentRoom.usersTyping.length > 0 height: visible ? implicitHeight: 0 spacing: Kirigami.Units.largeSpacing