Remove corner download if noforwards.

This commit is contained in:
John Preston
2021-11-05 22:32:26 +04:00
parent 96c910190b
commit c849d17667
13 changed files with 59 additions and 50 deletions
@@ -348,10 +348,10 @@ float64 DocumentMedia::progress() const {
: (loaded() ? 1. : 0.);
}
bool DocumentMedia::canBePlayed() const {
bool DocumentMedia::canBePlayed(HistoryItem *item) const {
return !_owner->inappPlaybackFailed()
&& _owner->useStreamingLoader()
&& (loaded() || _owner->canBeStreamed());
&& (loaded() || _owner->canBeStreamed(item));
}
bool DocumentMedia::thumbnailEnoughForSticker() const {