mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Remove local check
This commit is contained in:
parent
ab721eed15
commit
3892e07a91
@ -1398,14 +1398,7 @@ private final class PremiumIntroScreenComponent: CombinedComponent {
|
||||
let premiumProduct = self.premiumProduct, !self.inProgress else {
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user