Fix purchase manager

This commit is contained in:
Ilya Laktyushin 2025-08-21 20:27:34 +04:00
parent 8abcfbd895
commit 2c07764a31

View File

@ -192,6 +192,7 @@ public final class AuthorizationSequenceController: NavigationController, ASAuth
return
}
strongSelf.account = updatedAccount
strongSelf.inAppPurchaseManager = InAppPurchaseManager(engine: .unauthorized(strongSelf.engine))
}
controller.loginWithNumber = { [weak self, weak controller] number, syncContacts in
guard let self else {
@ -217,6 +218,7 @@ public final class AuthorizationSequenceController: NavigationController, ASAuth
case let .sentCode(account):
controller?.inProgress = false
strongSelf.account = account
strongSelf.inAppPurchaseManager = InAppPurchaseManager(engine: .unauthorized(strongSelf.engine))
case .loggedIn:
break
}