mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-08 17:53:38 +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 {
|
let premiumProduct = self.premiumProduct, !self.inProgress else {
|
||||||
return
|
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")
|
addAppLogEvent(postbox: self.context.account.postbox, type: "premium.promo_screen_accept")
|
||||||
|
|
||||||
self.inProgress = true
|
self.inProgress = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user