mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
Don't shows premium section / preview if unavailable.
This commit is contained in:
@@ -336,7 +336,7 @@ bool ShowSendPremiumError(
|
||||
not_null<SessionController*> controller,
|
||||
not_null<DocumentData*> document) {
|
||||
if (!document->isPremiumSticker()
|
||||
|| document->session().user()->isPremium()) {
|
||||
|| document->session().premium()) {
|
||||
return false;
|
||||
}
|
||||
ShowStickerPreviewBox(controller, document);
|
||||
|
Reference in New Issue
Block a user