Add gift screen presentation source

This commit is contained in:
Ilya Laktyushin
2023-12-21 18:36:15 +04:00
parent 6795603c4e
commit c035b7d376
11 changed files with 62 additions and 18 deletions

View File

@@ -581,7 +581,13 @@ func openResolvedUrlImpl(
}
case let .premiumOffer(reference):
dismissInput()
let controller = PremiumIntroScreen(context: context, source: .deeplink(reference))
let controller = context.sharedContext.makePremiumIntroController(context: context, source: .deeplink(reference), forceDark: false, dismissed: nil)
if let navigationController = navigationController {
navigationController.pushViewController(controller, animated: true)
}
case let .premiumMultiGift(reference):
dismissInput()
let controller = context.sharedContext.makePremiumGiftController(context: context, source: .deeplink(reference))
if let navigationController = navigationController {
navigationController.pushViewController(controller, animated: true)
}