diff --git a/Telegram/SourceFiles/data/data_document.cpp b/Telegram/SourceFiles/data/data_document.cpp index c6befff047..bbb5ae1058 100644 --- a/Telegram/SourceFiles/data/data_document.cpp +++ b/Telegram/SourceFiles/data/data_document.cpp @@ -1429,6 +1429,17 @@ Image *DocumentData::getReplyPreview( Data::FileOrigin origin, not_null context, bool spoiler) { + if (v::is(origin.data)) { + if (const auto item = _owner->message( + v::get(origin.data))) { + if (const auto cover = LookupVideoCover(this, item)) { + return cover->getReplyPreview( + std::move(origin), + context, + spoiler); + } + } + } if (!hasThumbnail()) { return nullptr; } else if (!_replyPreview) {