mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-28 19:40:54 +00:00
Allow viewing round videos in scheduled messages.
This commit is contained in:
parent
ed8b237364
commit
b74adc5311
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user