Fix typing indicator causing markAllMessagesAsRead

Move the typing indicator out of the listView header so it doesn't resize the view when appearing and disappearing causing all messages to be marked as read

BUG: 457666
This commit is contained in:
James Graham
2022-11-20 16:48:36 +00:00
parent ab844fb075
commit cd257137ba

View File

@@ -429,7 +429,7 @@ Kirigami.ScrollablePage {
UserDetailDialog {}
}
header: TypingPane {
TypingPane {
id: typingPane
visible: !loadingIndicator.visible && currentRoom && currentRoom.usersTyping.length > 0
labelText: visible ? i18ncp(
@@ -438,6 +438,7 @@ Kirigami.ScrollablePage {
currentRoom.usersTyping.map(user => user.displayName).join(", ")
) : ""
anchors.left: parent.left
anchors.bottom: parent.bottom
height: visible ? implicitHeight : 0
Behavior on height {
NumberAnimation {
@@ -448,7 +449,6 @@ Kirigami.ScrollablePage {
}
z: 2
}
headerPositioning: ListView.OverlayHeader
function goToEvent(eventID) {
const index = eventToIndex(eventID)