Allow viewing round videos in scheduled messages.

This commit is contained in:
John Preston 2020-01-23 15:37:12 +03:00
parent ed8b237364
commit b74adc5311
1 changed files with 3 additions and 3 deletions

View File

@ -243,7 +243,7 @@ bool Gif::downloadInCorner() const {
&& (_data->loading() || !autoplayEnabled()) && (_data->loading() || !autoplayEnabled())
&& _data->canBeStreamed() && _data->canBeStreamed()
&& !_data->inappPlaybackFailed() && !_data->inappPlaybackFailed()
&& IsServerMsgId(_parent->data()->id); && !_parent->data()->isSending();
} }
bool Gif::autoplayEnabled() const { bool Gif::autoplayEnabled() const {
@ -790,7 +790,7 @@ TextState Gif::textState(QPoint point, StateRequest request) const {
if (QRect(usex + paintx, painty, usew, painth).contains(point)) { if (QRect(usex + paintx, painty, usew, painth).contains(point)) {
result.link = _data->uploading() result.link = _data->uploading()
? _cancell ? _cancell
: !IsServerMsgId(_realParent->id) : _realParent->isSending()
? nullptr ? nullptr
: (_data->loaded() || _data->canBePlayed()) : (_data->loaded() || _data->canBePlayed())
? _openl ? _openl
@ -1051,7 +1051,7 @@ TextState Gif::getStateGrouped(
} }
return TextState(_parent, _data->uploading() return TextState(_parent, _data->uploading()
? _cancell ? _cancell
: !IsServerMsgId(_realParent->id) : _realParent->isSending()
? nullptr ? nullptr
: (_data->loaded() || _data->canBePlayed()) : (_data->loaded() || _data->canBePlayed())
? _openl ? _openl