Merge pull request #12 from rnhmjoj/fix-join

escape id when joining a room
This commit is contained in:
Joseph Donofry 2019-02-07 08:27:28 -05:00 committed by GitHub
commit a575178946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {