void-packages/srcpkgs/nheko/patches/fix_invites.patch
Lorem 4ca91064c0 nheko: add upstream patch; fix depends
Added qt5-multimedia as a runtime dependency,
without it the chat pages would be blank.

Added patch to fix encoding of invite links.
2020-05-06 18:51:43 +02:00

14 lines
547 B
Diff

Reason: Fix double percent encoding of invites
Upstream: Taken from upstream commit https://github.com/Nheko-Reborn/nheko/commit/d94ac8
--- src/ChatPage.cpp.orig
+++ src/ChatPage.cpp
@@ -1015,8 +1015,7 @@
void
ChatPage::joinRoom(const QString &room)
{
- // Percent escape the room ID
- const auto room_id = QUrl::toPercentEncoding(room).toStdString();
+ const auto room_id = room.toStdString();
http::client()->join_room(
room_id, [this, room_id](const nlohmann::json &, mtx::http::RequestErr err) {