2
0
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:
John Preston
2022-06-08 11:26:53 +04:00
parent 86889cf1ef
commit 524771529a
5 changed files with 29 additions and 1 deletions

View File

@@ -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);