mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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);
|
_media = media->createView(this, replacing);
|
||||||
} else if (isOnlyCustomEmoji()
|
} else if (isOnlyCustomEmoji()
|
||||||
&& Core::App().settings().largeEmoji()) {
|
&& Core::App().settings().largeEmoji()
|
||||||
|
&& !item->isSponsored()) {
|
||||||
_media = std::make_unique<UnwrappedMedia>(
|
_media = std::make_unique<UnwrappedMedia>(
|
||||||
this,
|
this,
|
||||||
std::make_unique<CustomEmoji>(this, onlyCustomEmoji()));
|
std::make_unique<CustomEmoji>(this, onlyCustomEmoji()));
|
||||||
} else if (isIsolatedEmoji()
|
} else if (isIsolatedEmoji()
|
||||||
&& Core::App().settings().largeEmoji()) {
|
&& Core::App().settings().largeEmoji()
|
||||||
|
&& !item->isSponsored()) {
|
||||||
const auto emoji = isolatedEmoji();
|
const auto emoji = isolatedEmoji();
|
||||||
const auto emojiStickers = &history()->session().emojiStickersPack();
|
const auto emojiStickers = &history()->session().emojiStickersPack();
|
||||||
const auto skipPremiumEffect = false;
|
const auto skipPremiumEffect = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue