mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Fixed display of userpic for sponsored messages in channels.
This commit is contained in:
parent
da75e790ea
commit
e44961e571
1 changed files with 2 additions and 1 deletions
|
@ -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())) {
|
||||
|
|
Loading…
Add table
Reference in a new issue