From e267f9f667b5f713664866abcd89a2024ccfa7a2 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 20 Jan 2026 17:05:14 -0500 Subject: [PATCH] Fix closeToYEnd check The comparison operator was reversed, and this was seen with mark as read being broken and buttons showing up at the wrong times. (cherry picked from commit 9ace01f74a78c05191101c080a00fe192e5827d9) --- src/timeline/TimelineView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeline/TimelineView.qml b/src/timeline/TimelineView.qml index 42eab5448..3bf0746c7 100644 --- a/src/timeline/TimelineView.qml +++ b/src/timeline/TimelineView.qml @@ -96,7 +96,7 @@ QQC2.ScrollView { id: messageListView // HACK: Use this instead of atYEnd to handle cases like -643.2 at height of 643 not being counted as "at the beginning" - readonly property bool closeToYEnd: -Math.round(contentY) >= height + readonly property bool closeToYEnd: -Math.round(contentY) <= height onHeightChanged: { // HACK: Fix a bug where Qt doesn't resettle the view properly when the pinned messages changes our height