summary refs log tree commit diff
path: root/src/AvatarProvider.cpp
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-20 12:02:35 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-20 12:02:35 +0300
commitd7e5171bfabf48e69112190b7096268222979c1c (patch)
tree89e09ff0189dbd87f7f203da0a53a52ccbb7fa2a /src/AvatarProvider.cpp
parentAdd user avatar after the 'encryption is enabled' message (diff)
downloadnheko-d7e5171bfabf48e69112190b7096268222979c1c.tar.xz
Create user profile modal
Diffstat (limited to 'src/AvatarProvider.cpp')
-rw-r--r--src/AvatarProvider.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/AvatarProvider.cpp b/src/AvatarProvider.cpp
index dbfc1945..57b61c75 100644
--- a/src/AvatarProvider.cpp
+++ b/src/AvatarProvider.cpp
@@ -50,6 +50,8 @@ resolve(const QString &room_id, const QString &user_id, QObject *receiver, Avata
                          [callback](const QByteArray &data) { callback(QImage::fromData(data)); });
 
         mtx::http::ThumbOpts opts;
+        opts.width   = 256;
+        opts.height  = 256;
         opts.mxc_url = avatarUrl.toStdString();
 
         http::client()->get_thumbnail(