diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2018-12-15 23:20:11 +0100 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2019-02-07 13:51:18 +0100 |
commit | 933fd22e49bfa77549e3a45917c5197f5ecbdba9 (patch) | |
tree | da367ddf3ca25c66e7d989dca1dc4916769b1e2a /src/ChatPage.cpp | |
parent | Merge pull request #7 from tim77/master (diff) | |
download | nheko-933fd22e49bfa77549e3a45917c5197f5ecbdba9.tar.xz |
escape id when joining a room
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r-- | src/ChatPage.cpp | 3 |
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) { |