mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-06 20:54:04 +00:00
Various fixes
This commit is contained in:
parent
1a102a6d1c
commit
237f86f7ca
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user