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.
This commit is contained in:
Joshua Goins
2026-01-20 17:05:14 -05:00
parent 4632a9f9bb
commit 9ace01f74a

View File

@@ -91,7 +91,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