2
0
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:
John Preston
2024-08-12 12:37:42 +02:00
parent 155f4ea252
commit 83f4c53766
8 changed files with 113 additions and 50 deletions

View File

@@ -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);
}