mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed display of corner status of video in sponsored messages.
This commit is contained in:
parent
a3c79feeba
commit
0f4aadddfc
1 changed files with 6 additions and 1 deletions
|
@ -388,6 +388,9 @@ bool Gif::downloadInCorner() const {
|
|||
}
|
||||
|
||||
bool Gif::autoplayEnabled() const {
|
||||
if (_realParent->isSponsored()) {
|
||||
return true;
|
||||
}
|
||||
return Data::AutoDownload::ShouldAutoPlay(
|
||||
_data->session().settings().autoDownload(),
|
||||
_realParent->history()->peer,
|
||||
|
@ -689,7 +692,9 @@ void Gif::draw(Painter &p, const PaintContext &context) const {
|
|||
}
|
||||
|
||||
if (!unwrapped && !skipDrawingSurrounding) {
|
||||
if ((!isRound || !inWebPage) && !_realParent->isSponsored()) {
|
||||
const auto sponsoredSkip = !_data->isVideoFile()
|
||||
&& _realParent->isSponsored();
|
||||
if ((!isRound || !inWebPage) && !sponsoredSkip) {
|
||||
drawCornerStatus(p, context, QPoint());
|
||||
}
|
||||
} else if (!skipDrawingSurrounding) {
|
||||
|
|
Loading…
Add table
Reference in a new issue