Various fixes

This commit is contained in:
Ilya Laktyushin 2022-07-21 02:11:02 +02:00
parent 1a102a6d1c
commit 237f86f7ca
3 changed files with 7 additions and 4 deletions

View File

@ -36,6 +36,7 @@ public enum PremiumSource: Equatable {
case accounts
case about
case appIcons
case animatedEmoji
case deeplink(String?)
case profile(PeerId)
case gift(from: PeerId, to: PeerId, duration: Int32)
@ -73,6 +74,8 @@ public enum PremiumSource: Equatable {
return "double_limits__accounts"
case .about:
return "double_limits__about"
case .animatedEmoji:
return "animated_emoji"
case let .profile(id):
return "profile__\(id.id._internalGetInt64Value())"
case .gift, .giftTerms:

View File

@ -2873,8 +2873,8 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
strongSelf.dismissTextInput()
var replaceImpl: ((ViewController) -> Void)?
let controller = PremiumDemoScreen(context: strongSelf.context, subject: .premiumStickers, action: {
let controller = PremiumIntroScreen(context: strongSelf.context, source: .stickers)
let controller = PremiumDemoScreen(context: strongSelf.context, subject: .animatedEmoji, action: {
let controller = PremiumIntroScreen(context: strongSelf.context, source: .animatedEmoji)
replaceImpl?(controller)
})
replaceImpl = { [weak controller] c in

View File

@ -287,7 +287,7 @@ final class ChatEntityKeyboardInputNode: ChatInputNode {
var replaceImpl: ((ViewController) -> Void)?
let controller = PremiumDemoScreen(context: context, subject: .animatedEmoji, action: {
let controller = PremiumIntroScreen(context: context, source: .stickers)
let controller = PremiumIntroScreen(context: context, source: .animatedEmoji)
replaceImpl?(controller)
})
replaceImpl = { [weak controller] c in
@ -1526,7 +1526,7 @@ final class EntityInputView: UIView, AttachmentTextInputPanelInputView, UIInputV
var replaceImpl: ((ViewController) -> Void)?
let controller = PremiumDemoScreen(context: strongSelf.context, subject: .animatedEmoji, action: {
let controller = PremiumIntroScreen(context: strongSelf.context, source: .stickers)
let controller = PremiumIntroScreen(context: strongSelf.context, source: .animatedEmoji)
replaceImpl?(controller)
})
replaceImpl = { [weak controller] c in