diff options
author | Thulinma <jaron@vietors.com> | 2021-09-16 01:41:55 +0200 |
---|---|---|
committer | Thulinma <jaron@vietors.com> | 2021-09-16 02:17:07 +0200 |
commit | 1d5bf56cf9dc8aea4aa849ef5f0f580c1eae4cdd (patch) | |
tree | 6ac1329f05c014027285cad360ec0c09b972ffdc /src/ChatPage.h | |
parent | Workaround for broken fetchMore() with reuseItems (diff) | |
download | nheko-1d5bf56cf9dc8aea4aa849ef5f0f580c1eae4cdd.tar.xz |
Improvements for linking to events
- Fixes scrolling to an event not being reliable - Adds new /goto command that can open URLs, go to events, or go to message indexes. - Refactored ChatPage::handleMatrixUri() to contain the handling originally in Nheko::openLink(), and makes it return a boolean based on whether the URL was handled internally or not.
Diffstat (limited to 'src/ChatPage.h')
-rw-r--r-- | src/ChatPage.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ChatPage.h b/src/ChatPage.h index 9cbf2a03..66e4c6ab 100644 --- a/src/ChatPage.h +++ b/src/ChatPage.h @@ -78,8 +78,8 @@ public: QString currentRoom() const; public slots: - void handleMatrixUri(const QByteArray &uri); - void handleMatrixUri(const QUrl &uri); + bool handleMatrixUri(const QByteArray &uri); + bool handleMatrixUri(const QUrl &uri); void startChat(QString userid); void leaveRoom(const QString &room_id); |