mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Merge pull request #12 from rnhmjoj/fix-join
escape id when joining a room
This commit is contained in:
commit
a575178946
1 changed files with 2 additions and 1 deletions
|
@ -1098,7 +1098,8 @@ ChatPage::trySync()
|
||||||
void
|
void
|
||||||
ChatPage::joinRoom(const QString &room)
|
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(
|
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