Account for spacing when checking for bottom message for read status

This commit is contained in:
Nicolas Werner 2020-01-21 20:46:12 +01:00
parent c95f4d8276
commit fcc7c0ce5b

View file

@ -111,7 +111,7 @@ Item {
Binding { Binding {
target: chat.model target: chat.model
property: "currentIndex" property: "currentIndex"
when: y + height > chat.contentY + chat.height && y < chat.contentY + chat.height when: y + height + 2 * chat.spacing > chat.contentY + chat.height && y < chat.contentY + chat.height
value: index value: index
delayed: true delayed: true
} }