2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fixed display of userpic for sponsored messages in channels.

This commit is contained in:
23rd
2022-03-01 11:09:43 +03:00
parent da75e790ea
commit e44961e571

View File

@@ -1391,7 +1391,8 @@ bool Message::hasFromPhoto() const {
case Context::Replies: {
const auto item = message();
if (item->isPost()) {
return item->isSponsored();
return item->isSponsored()
&& item->history()->peer->isMegagroup();
}
if (item->isEmpty()
|| (context() == Context::Replies && item->isDiscussionPost())) {