aboutsummaryrefslogtreecommitdiff
path: root/jobs/mediathumbnailjob.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-03 21:24:49 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-03 21:24:49 +0900
commite80bfd2fc710d4780a2c22bde9d605a41bd4aaa4 (patch)
tree03eecc0f4999f90952da3d7cf8637c2fa2ac84f1 /jobs/mediathumbnailjob.cpp
parente1aedb9f3dcf7dcdc68e5eefab206258013c5114 (diff)
parentf6b55a3c8fc60dd263954df3359027eff2ef1e18 (diff)
downloadlibquotient-e80bfd2fc710d4780a2c22bde9d605a41bd4aaa4.tar.gz
libquotient-e80bfd2fc710d4780a2c22bde9d605a41bd4aaa4.zip
Merge branch 'kitsune-expose-download-urls' into kitsune-gtad
Diffstat (limited to 'jobs/mediathumbnailjob.cpp')
-rw-r--r--jobs/mediathumbnailjob.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/jobs/mediathumbnailjob.cpp b/jobs/mediathumbnailjob.cpp
index ec82f57b..261978ec 100644
--- a/jobs/mediathumbnailjob.cpp
+++ b/jobs/mediathumbnailjob.cpp
@@ -20,6 +20,13 @@
using namespace QMatrixClient;
+QUrl MediaThumbnailJob::makeRequestUrl(QUrl baseUrl,
+ const QUrl& mxcUri, QSize requestedSize)
+{
+ return makeRequestUrl(baseUrl, mxcUri.authority(), mxcUri.path().mid(1),
+ requestedSize.width(), requestedSize.height());
+}
+
MediaThumbnailJob::MediaThumbnailJob(const QString& serverName,
const QString& mediaId, QSize requestedSize)
: GetContentThumbnailJob(serverName, mediaId,