mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix double percent encoding of invites
This commit is contained in:
parent
a5d5ea1881
commit
d94ac86816
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue