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

View File

@ -243,7 +243,7 @@ bool Gif::downloadInCorner() const {
&& (_data->loading() || !autoplayEnabled())
&& _data->canBeStreamed()
&& !_data->inappPlaybackFailed()
&& IsServerMsgId(_parent->data()->id);
&& !_parent->data()->isSending();
}
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)) {
result.link = _data->uploading()
? _cancell
: !IsServerMsgId(_realParent->id)
: _realParent->isSending()
? nullptr
: (_data->loaded() || _data->canBePlayed())
? _openl
@ -1051,7 +1051,7 @@ TextState Gif::getStateGrouped(
}
return TextState(_parent, _data->uploading()
? _cancell
: !IsServerMsgId(_realParent->id)
: _realParent->isSending()
? nullptr
: (_data->loaded() || _data->canBePlayed())
? _openl