Closed alpha 2.1.7.1: Fix build for Xcode.

This commit is contained in:
John Preston 2020-05-26 21:53:10 +04:00
parent 6dabd87df3
commit a9b70a7d63
2 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ EditCaptionBox::EditCaptionBox(
Assert(_animated || _photo || _doc); Assert(_animated || _photo || _doc);
_thumbnailImageLoaded = _photoMedia _thumbnailImageLoaded = _photoMedia
? _photoMedia->image(Data::PhotoSize::Large) ? (_photoMedia->image(Data::PhotoSize::Large) != nullptr)
: _thumbnailImage : _thumbnailImage
? _thumbnailImage->loaded() ? _thumbnailImage->loaded()
: _documentMedia : _documentMedia

View File

@ -283,7 +283,7 @@ void PhotoData::load(
if (size == PhotoSize::Large) { if (size == PhotoSize::Large) {
_owner->photoLoadFail(this, started); _owner->photoLoadFail(this, started);
} }
}, [=, &image] { }, [=] {
finishLoad(size); finishLoad(size);
if (size == PhotoSize::Large) { if (size == PhotoSize::Large) {
_owner->photoLoadDone(this); _owner->photoLoadDone(this);