Fix double percent encoding of invites

This commit is contained in:
Nicolas Werner 2020-04-24 16:18:48 +02:00
parent a5d5ea1881
commit d94ac86816

View file

@ -1015,8 +1015,7 @@ ChatPage::trySync()
void void
ChatPage::joinRoom(const QString &room) ChatPage::joinRoom(const QString &room)
{ {
// Percent escape the room ID const auto room_id = room.toStdString();
const auto room_id = QUrl::toPercentEncoding(room).toStdString();
http::client()->join_room( http::client()->join_room(
room_id, [this, room_id](const nlohmann::json &, mtx::http::RequestErr err) { room_id, [this, room_id](const nlohmann::json &, mtx::http::RequestErr err) {