summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Donofry <rubberduckie3554@gmail.com>2019-02-07 08:27:28 -0500
committerGitHub <noreply@github.com>2019-02-07 08:27:28 -0500
commita5751789467a9fd19eb1f18fbbf6425fb41577d4 (patch)
treeda367ddf3ca25c66e7d989dca1dc4916769b1e2a
parentMerge pull request #7 from tim77/master (diff)
parentescape id when joining a room (diff)
downloadnheko-a5751789467a9fd19eb1f18fbbf6425fb41577d4.tar.xz
Merge pull request #12 from rnhmjoj/fix-join
escape id when joining a room
-rw-r--r--src/ChatPage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp
index a60c09cb..aaaddf6d 100644
--- a/src/ChatPage.cpp
+++ b/src/ChatPage.cpp
@@ -1098,7 +1098,8 @@ ChatPage::trySync()
 void
 ChatPage::joinRoom(const QString &room)
 {
-        const auto room_id = room.toStdString();
+        // Percent escape the room ID
+        const auto room_id = QUrl::toPercentEncoding(room).toStdString();
 
         http::client()->join_room(
           room_id, [this, room_id](const nlohmann::json &, mtx::http::RequestErr err) {