Skip to content
Snippets Groups Projects
Unverified Commit 933fd22e authored by rnhmjoj's avatar rnhmjoj
Browse files

escape id when joining a room

parent 6ab12b2f
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment