Various fixes

This commit is contained in:
Ilya Laktyushin
2022-07-24 22:57:22 +03:00
parent ccb0b57d5c
commit b96430093c
13 changed files with 245 additions and 85 deletions

View File

@@ -1055,7 +1055,14 @@ final class ChatEntityKeyboardInputNode: ChatInputNode {
}
if isPremiumLocked {
let controller = PremiumIntroScreen(context: context, source: .stickers)
var replaceImpl: ((ViewController) -> Void)?
let controller = PremiumDemoScreen(context: context, subject: .animatedEmoji, action: {
let controller = PremiumIntroScreen(context: context, source: .animatedEmoji)
replaceImpl?(controller)
})
replaceImpl = { [weak controller] c in
controller?.replace(with: c)
}
controllerInteraction.navigationController()?.pushViewController(controller)
return