aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-02 23:07:03 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-02 23:07:03 +0200
commitcbc6997c0a5659239d2cd971f2fa77eeda53550b (patch)
tree58e59a7633a1c53fed6845a1e0454eb0ccf4c765 /src
parent01bac70680553e622a655722959a113ed35f4de9 (diff)
Matrix: fix room directory submit always using empty text (resulting in the homserver being the server target)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Matrix.cpp4
1 files changed, 2 insertions, 2 deletions
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<Tab> &result_tabs) {
- std::string server_name = url;
+ PluginResult MatrixRoomDirectoryPage::submit(const std::string &title, const std::string&, std::vector<Tab> &result_tabs) {
+ std::string server_name = title;
if(strncmp(server_name.c_str(), "http://", 7) == 0)
server_name.erase(0, 7);