mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02: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:
parent
8d93b21947
commit
fa8124cc1b
1 changed files with 5 additions and 3 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue