aboutsummaryrefslogtreecommitdiff
path: root/user.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'user.cpp')
-rw-r--r--user.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/user.cpp b/user.cpp
index 8d37eef6..f9f48539 100644
--- a/user.cpp
+++ b/user.cpp
@@ -170,12 +170,11 @@ void User::requestAvatar()
void User::Private::requestAvatar()
{
- MediaThumbnailJob* job = connection->getThumbnail(avatarUrl, requestedSize);
+ auto* job = connection->callApi<MediaThumbnailJob>(avatarUrl, requestedSize);
connect( job, &MediaThumbnailJob::success, [=]() {
avatarOngoingRequest = false;
avatarValid = true;
- avatar = job->thumbnail().scaled(requestedSize,
- Qt::KeepAspectRatio, Qt::SmoothTransformation);
+ avatar = job->scaledThumbnail(requestedSize);
scaledAvatars.clear();
emit q->avatarChanged(q);
});