diff --git a/Telegram/SourceFiles/boxes/edit_caption_box.cpp b/Telegram/SourceFiles/boxes/edit_caption_box.cpp index bedf44e92..d3f85ffaa 100644 --- a/Telegram/SourceFiles/boxes/edit_caption_box.cpp +++ b/Telegram/SourceFiles/boxes/edit_caption_box.cpp @@ -280,7 +280,7 @@ EditCaptionBox::EditCaptionBox( Assert(_animated || _photo || _doc); _thumbnailImageLoaded = _photoMedia - ? _photoMedia->image(Data::PhotoSize::Large) + ? (_photoMedia->image(Data::PhotoSize::Large) != nullptr) : _thumbnailImage ? _thumbnailImage->loaded() : _documentMedia diff --git a/Telegram/SourceFiles/data/data_photo.cpp b/Telegram/SourceFiles/data/data_photo.cpp index b485d10d3..c58b65f92 100644 --- a/Telegram/SourceFiles/data/data_photo.cpp +++ b/Telegram/SourceFiles/data/data_photo.cpp @@ -283,7 +283,7 @@ void PhotoData::load( if (size == PhotoSize::Large) { _owner->photoLoadFail(this, started); } - }, [=, &image] { + }, [=] { finishLoad(size); if (size == PhotoSize::Large) { _owner->photoLoadDone(this);