Remove local check

This commit is contained in:
Ilya Laktyushin 2022-06-17 20:57:23 +04:00
parent ab721eed15
commit 3892e07a91

View File

@ -1399,13 +1399,6 @@ private final class PremiumIntroScreenComponent: CombinedComponent {
return
}
guard !self.context.account.testingEnvironment else {
let presentationData = self.context.sharedContext.currentPresentationData.with { $0 }
let alertController = textAlertController(context: self.context, title: nil, text: "Telegram Premium is not available in the test environment.", actions: [TextAlertAction(type: .defaultAction, title: presentationData.strings.Common_OK, action: {})])
self.present(alertController)
return
}
addAppLogEvent(postbox: self.context.account.postbox, type: "premium.promo_screen_accept")
self.inProgress = true