diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-05 11:06:30 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-05 11:18:22 +0900 |
commit | c944e7d87c3ac7b2f83adc0ea7c04eeccda07b2b (patch) | |
tree | 013e64a463b22859a2b6d7f4bdf8669b43c925e3 | |
parent | 2a9e64dc046707040fa9fbf5474459b47f881473 (diff) | |
download | libquotient-c944e7d87c3ac7b2f83adc0ea7c04eeccda07b2b.tar.gz libquotient-c944e7d87c3ac7b2f83adc0ea7c04eeccda07b2b.zip |
Avatar: Use Connection::getThumbnail instead of callApi<>
-rw-r--r-- | avatar.cpp | 2 | ||||
-rw-r--r-- | avatar.h | 1 |
2 files changed, 1 insertions, 2 deletions
@@ -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()) @@ -25,7 +25,6 @@ namespace QMatrixClient { - class MediaThumbnailJob; class Connection; class Avatar |