2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-29 05:29:23 +00:00

Removed display of userpic for sponsored messages.

This commit is contained in:
23rd 2024-10-02 22:07:20 +03:00 committed by John Preston
parent 8d93eb919b
commit 440ebfcbf6

View File

@ -2367,7 +2367,9 @@ bool Message::hasFromPhoto() const {
case Context::SavedSublist:
case Context::ScheduledTopic: {
const auto item = data();
if (item->isPostHidingAuthor()) {
if (item->isSponsored()) {
return false;
} else if (item->isPostHidingAuthor()) {
return false;
} else if (item->isPost()) {
return true;