escape id when joining a room

This commit is contained in:
Michele Guerini Rocco 2018-12-15 23:20:11 +01:00
parent 6ab12b2f6d
commit 933fd22e49
Signed by: rnhmjoj
GPG Key ID: 91BE884FBA4B591A
1 changed files with 2 additions and 1 deletions

View File

@ -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) {