From 99bf32bf913f75abc0311a74b1ec43f4e00e580d Mon Sep 17 00:00:00 2001 From: Black Hat Date: Fri, 12 Oct 2018 20:38:05 +0800 Subject: [PATCH] Fix #73. Also updates libqmatrixclient. --- imports/Spectral/Component/Timeline/MessageDelegate.qml | 6 ++++++ imports/Spectral/Panel/RoomPanel.qml | 2 +- include/libqmatrixclient | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/imports/Spectral/Component/Timeline/MessageDelegate.qml b/imports/Spectral/Component/Timeline/MessageDelegate.qml index 638a843..70237b3 100644 --- a/imports/Spectral/Component/Timeline/MessageDelegate.qml +++ b/imports/Spectral/Component/Timeline/MessageDelegate.qml @@ -95,6 +95,12 @@ RowLayout { textFormat: Text.RichText onLinkActivated: Qt.openUrlExternally(link) + + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.NoButton + cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor + } } Loader { diff --git a/imports/Spectral/Panel/RoomPanel.qml b/imports/Spectral/Panel/RoomPanel.qml index e559b85..53806ee 100644 --- a/imports/Spectral/Panel/RoomPanel.qml +++ b/imports/Spectral/Panel/RoomPanel.qml @@ -10,7 +10,7 @@ RoomPanelForm { { var lastScrollPosition = sortedMessageEventModel.mapFromSource(currentRoom.savedTopVisibleIndex()) if (lastScrollPosition === 0) - messageListView.positionViewAtBeginning() + messageListView.positionViewAtEnd() else { console.log("Scrolling to position", lastScrollPosition) diff --git a/include/libqmatrixclient b/include/libqmatrixclient index fa6bf46..98c4168 160000 --- a/include/libqmatrixclient +++ b/include/libqmatrixclient @@ -1 +1 @@ -Subproject commit fa6bf46d76a69b8f1b03145a5e3d643d541ce353 +Subproject commit 98c416813177f7141079101da978fe1222574b5c