From e4c9230c090d66ac8f1328b8511b98694c671978 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 12 Feb 2026 20:54:53 -0500 Subject: [PATCH] Re-settle the timeline view when replying to messages Or changing the height of the chatbar in other ways, which I'm sure is going to become more common with our new rich text system. --- src/app/qml/RoomPage.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app/qml/RoomPage.qml b/src/app/qml/RoomPage.qml index e28572b18..51e7ea49f 100644 --- a/src/app/qml/RoomPage.qml +++ b/src/app/qml/RoomPage.qml @@ -80,6 +80,12 @@ Kirigami.Page { onHeightChanged: { // HACK: See TimelineView for the hack details. // We get the height change here *first* so we are informed this is because of a window resize and not due to the pinned message. + resetViewSettling(); + } + + // Resets the view settling of the timeline. + // This should be called whenever the apparent height of the timeline changes, or else the view will scroll on its own! + function resetViewSettling(): void { (timelineViewLoader.item as TimelineView).resetViewSettling(); } @@ -356,6 +362,9 @@ Kirigami.Page { width: parent.width currentRoom: root.currentRoom connection: root.currentRoom.connection as NeoChatConnection + + // Creating a reply (or doing anything in the chat bar) can change the height, but this isn't picked up on the root's onHeightChanged. + onHeightChanged: root.resetViewSettling() } }