feat: allow stories downloading

The icon for non-premium users looks like it's locked, but it still can be clicked.
This commit is contained in:
ZavaruKitsu 2023-12-29 12:54:48 +03:00
parent 8d93b21947
commit fa8124cc1b

View file

@ -1036,9 +1036,11 @@ QSize OverlayWidget::flipSizeByRotation(QSize size) const {
bool OverlayWidget::hasCopyMediaRestriction(bool skipPremiumCheck) const {
if (const auto story = _stories ? _stories->story() : nullptr) {
return skipPremiumCheck
? !story->canDownloadIfPremium()
: !story->canDownloadChecked();
// AyuGram: removed; allow downloading any stories
return false;
// return skipPremiumCheck
// ? !story->canDownloadIfPremium()
// : !story->canDownloadChecked();
}
return (_history && !_history->peer->allowsForwarding())
|| (_message && _message->forbidsSaving());