mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-01 09:55:24 +00:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user