Size images/videos by timeline width

This commit is contained in:
Nicolas Werner 2019-10-09 00:36:03 +02:00
parent d90038cf20
commit 8ebef4eed2
6 changed files with 46 additions and 12 deletions

View file

@ -67,8 +67,8 @@ resolve(const QString &avatarUrl, int size, QObject *receiver, AvatarCallback ca
});
mtx::http::ThumbOpts opts;
opts.width = 256;
opts.height = 256;
opts.width = size;
opts.height = size;
opts.mxc_url = avatarUrl.toStdString();
http::client()->get_thumbnail(