From fa8124cc1b6e8a150a488cc747fffba8e700cccf Mon Sep 17 00:00:00 2001 From: ZavaruKitsu Date: Fri, 29 Dec 2023 12:54:48 +0300 Subject: [PATCH] feat: allow stories downloading The icon for non-premium users looks like it's locked, but it still can be clicked. --- .../SourceFiles/media/view/media_view_overlay_widget.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index 1c68f2dbc..a5aeda804 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -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());