mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Provide unavailable reasons for messages.
This commit is contained in:
@@ -252,7 +252,8 @@ Image *PhotoData::getReplyPreview(
|
||||
|
||||
Image *PhotoData::getReplyPreview(not_null<HistoryItem*> item) {
|
||||
const auto media = item->media();
|
||||
const auto spoiler = media && media->hasSpoiler();
|
||||
const auto spoiler = (media && media->hasSpoiler())
|
||||
|| item->hasSensitiveSpoiler();
|
||||
return getReplyPreview(item->fullId(), item->history()->peer, spoiler);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user