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.
This commit is contained in:
Lorem 2020-05-06 20:37:27 +05:30 committed by Piotr
parent 1a136f1ff0
commit 4ca91064c0
2 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,14 @@
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) {

View file

@ -1,13 +1,14 @@
# Template file for 'nheko' # Template file for 'nheko'
pkgname=nheko pkgname=nheko
version=0.7.1 version=0.7.1
revision=2 revision=3
build_style=cmake build_style=cmake
hostmakedepends="qt5-host-tools qt5-qmake pkg-config qt5-declarative" hostmakedepends="qt5-host-tools qt5-qmake pkg-config qt5-declarative"
makedepends="qt5-multimedia-devel qt5-svg-devel qt5-tools-devel makedepends="qt5-multimedia-devel qt5-svg-devel qt5-tools-devel
tweeny spdlog mtxclient-devel boost-devel cmark-devel olm-devel json-c++ tweeny spdlog mtxclient-devel boost-devel cmark-devel olm-devel json-c++
libsodium-devel lmdb++ qt5-declarative-devel qt5-quickcontrols2-devel" libsodium-devel lmdb++ qt5-declarative-devel qt5-quickcontrols2-devel"
depends="hicolor-icon-theme qt5-quickcontrols2 qt5-graphicaleffects" depends="hicolor-icon-theme qt5-quickcontrols2 qt5-graphicaleffects
qt5-multimedia"
short_desc="Desktop client for Matrix using Qt and C++14" short_desc="Desktop client for Matrix using Qt and C++14"
maintainer="Lorem <notloremipsum@protonmail.com>" maintainer="Lorem <notloremipsum@protonmail.com>"
license="GPL-3.0-or-later" license="GPL-3.0-or-later"