From cbc6997c0a5659239d2cd971f2fa77eeda53550b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 2 Aug 2021 23:07:03 +0200 Subject: Matrix: fix room directory submit always using empty text (resulting in the homserver being the server target) --- TODO | 3 ++- src/plugins/Matrix.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 8a09a6d..5bc6668 100644 --- a/TODO +++ b/TODO @@ -190,4 +190,5 @@ Handle replaces_state in matrix to get correct order for states? Handle users_default power level in matrix. Remove power_levels from sync and request them manually when entering a room. Synapse is gay and mentions do not actually include the whole mxid. It only includes the username part of it. This conflicts with quickmedia notification and mentions where quickmedia includes the mxid in the mention instead, - while the user might have disable username mentions. In those cases the user wont get a notification for mxid mention. Mention name instead? \ No newline at end of file + while the user might have disable username mentions. In those cases the user wont get a notification for mxid mention. Mention name instead? +Make it possible to redact invites. \ No newline at end of file diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 58a90c9..18a76eb 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -985,8 +985,8 @@ namespace QuickMedia { rooms_page->set_room_as_read(room); } - PluginResult MatrixRoomDirectoryPage::submit(const std::string&, const std::string &url, std::vector &result_tabs) { - std::string server_name = url; + PluginResult MatrixRoomDirectoryPage::submit(const std::string &title, const std::string&, std::vector &result_tabs) { + std::string server_name = title; if(strncmp(server_name.c_str(), "http://", 7) == 0) server_name.erase(0, 7); -- cgit v1.2.3