mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Create ImagePtr-s using a factory method.
This commit is contained in:
@@ -679,7 +679,7 @@ ConfirmInviteBox::ConfirmInviteBox(
|
||||
size,
|
||||
data.vphoto_small);
|
||||
if (!location.isNull()) {
|
||||
_photo = ImagePtr(location);
|
||||
_photo = Images::Create(location);
|
||||
if (!_photo->loaded()) {
|
||||
subscribe(Auth().downloaderTaskFinished(), [this] { update(); });
|
||||
_photo->load(Data::FileOrigin());
|
||||
|
Reference in New Issue
Block a user