mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Removed display of unwrapped media in sponsored messages.
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user