diff --git a/Telegram/SourceFiles/overview/overview_layout.cpp b/Telegram/SourceFiles/overview/overview_layout.cpp index e4a07344ad..73bdc5dea9 100644 --- a/Telegram/SourceFiles/overview/overview_layout.cpp +++ b/Telegram/SourceFiles/overview/overview_layout.cpp @@ -313,6 +313,11 @@ Photo::Photo( maybeClearSensitiveSpoiler(); })), parent) + : _spoiler + ? std::make_shared(crl::guard(this, [=] { + clearSpoiler(); + _link = makeOpenPhotoHandler(); + })) : makeOpenPhotoHandler()) { if (_data->inlineThumbnailBytes().isEmpty() && (_data->hasExact(Data::PhotoSize::Small) @@ -515,6 +520,11 @@ Video::Video( setDocumentLinks(_data); })), parent); + } else if (_spoiler) { + _openl = std::make_shared(crl::guard(this, [=] { + clearSpoiler(); + setDocumentLinks(_data); + })); } if (!_videoCover) { _data->loadThumbnail(parent->fullId());