mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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 {
|
bool OverlayWidget::hasCopyMediaRestriction(bool skipPremiumCheck) const {
|
||||||
if (const auto story = _stories ? _stories->story() : nullptr) {
|
if (const auto story = _stories ? _stories->story() : nullptr) {
|
||||||
return skipPremiumCheck
|
// AyuGram: removed; allow downloading any stories
|
||||||
? !story->canDownloadIfPremium()
|
return false;
|
||||||
: !story->canDownloadChecked();
|
// return skipPremiumCheck
|
||||||
|
// ? !story->canDownloadIfPremium()
|
||||||
|
// : !story->canDownloadChecked();
|
||||||
}
|
}
|
||||||
return (_history && !_history->peer->allowsForwarding())
|
return (_history && !_history->peer->allowsForwarding())
|
||||||
|| (_message && _message->forbidsSaving());
|
|| (_message && _message->forbidsSaving());
|
||||||
|
|
Loading…
Add table
Reference in a new issue