mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Removed display of unwrapped media in sponsored messages.
This commit is contained in:
parent
a92e9f7162
commit
1af4af6ff3
1 changed files with 4 additions and 2 deletions
|
@ -760,12 +760,14 @@ void Element::refreshMedia(Element *replacing) {
|
|||
}
|
||||
_media = media->createView(this, replacing);
|
||||
} else if (isOnlyCustomEmoji()
|
||||
&& Core::App().settings().largeEmoji()) {
|
||||
&& Core::App().settings().largeEmoji()
|
||||
&& !item->isSponsored()) {
|
||||
_media = std::make_unique<UnwrappedMedia>(
|
||||
this,
|
||||
std::make_unique<CustomEmoji>(this, onlyCustomEmoji()));
|
||||
} else if (isIsolatedEmoji()
|
||||
&& Core::App().settings().largeEmoji()) {
|
||||
&& Core::App().settings().largeEmoji()
|
||||
&& !item->isSponsored()) {
|
||||
const auto emoji = isolatedEmoji();
|
||||
const auto emojiStickers = &history()->session().emojiStickersPack();
|
||||
const auto skipPremiumEffect = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue