aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--avatar.cpp2
-rw-r--r--avatar.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/avatar.cpp b/avatar.cpp
index 9490347d..eeb61f30 100644
--- a/avatar.cpp
+++ b/avatar.cpp
@@ -76,7 +76,7 @@ QImage Avatar::Private::get(QSize size, Avatar::notifier_t notifier)
if (_ongoingRequest)
_ongoingRequest->abandon();
notifiers.emplace_back(std::move(notifier));
- _ongoingRequest = _connection->callApi<MediaThumbnailJob>(_url, size);
+ _ongoingRequest = _connection->getThumbnail(_url, size);
_ongoingRequest->connect( _ongoingRequest, &MediaThumbnailJob::finished,
_connection, [=]() {
if (_ongoingRequest->status().good())
diff --git a/avatar.h b/avatar.h
index d8b4b206..bf9cfdcd 100644
--- a/avatar.h
+++ b/avatar.h
@@ -25,7 +25,6 @@
namespace QMatrixClient
{
- class MediaThumbnailJob;
class Connection;
class Avatar