2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Support 18+/restrictions for messages.

This commit is contained in:
John Preston
2024-08-14 15:17:59 +02:00
parent 074dbf41e0
commit b9de12fedb
35 changed files with 711 additions and 299 deletions

View File

@@ -252,8 +252,7 @@ Image *PhotoData::getReplyPreview(
Image *PhotoData::getReplyPreview(not_null<HistoryItem*> item) {
const auto media = item->media();
const auto spoiler = (media && media->hasSpoiler())
|| item->hasSensitiveSpoiler();
const auto spoiler = (media && media->hasSpoiler());
return getReplyPreview(item->fullId(), item->history()->peer, spoiler);
}