Fix jump to last message button trigger, the list view is no longer root.

This commit is contained in:
James Graham
2025-06-16 18:04:25 +01:00
parent 419aed6375
commit 33d29f6b02

View File

@@ -231,7 +231,7 @@ QQC2.ScrollView {
text: i18n("Jump to latest message") text: i18n("Jump to latest message")
action: Kirigami.Action { action: Kirigami.Action {
onTriggered: { onTriggered: {
root.positionViewAtBeginning(); messageListView.positionViewAtBeginning();
root.room.markAllMessagesAsRead(); root.room.markAllMessagesAsRead();
} }
icon.name: "go-down" icon.name: "go-down"