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;