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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user