mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
[ttl-media] Fixed previews showing content of ttl media.
This commit is contained in:
@@ -1562,7 +1562,7 @@ Image *DocumentData::getReplyPreview(
|
||||
|
||||
Image *DocumentData::getReplyPreview(not_null<HistoryItem*> item) {
|
||||
const auto media = item->media();
|
||||
const auto spoiler = media && media->hasSpoiler();
|
||||
const auto spoiler = media && media->hasSpoilerForPreview();
|
||||
return getReplyPreview(item->fullId(), item->history()->peer, spoiler);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user