Don't show the typing users while the room is still loading

Fixes #316
This commit is contained in:
Tobias Fella
2021-03-23 18:27:42 +01:00
parent f44716d9b0
commit 96c402040d

View File

@@ -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