mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-08 13:42:51 +00:00
Various fixes
This commit is contained in:
parent
1a102a6d1c
commit
237f86f7ca
@ -36,6 +36,7 @@ public enum PremiumSource: Equatable {
|
|||||||
case accounts
|
case accounts
|
||||||
case about
|
case about
|
||||||
case appIcons
|
case appIcons
|
||||||
|
case animatedEmoji
|
||||||
case deeplink(String?)
|
case deeplink(String?)
|
||||||
case profile(PeerId)
|
case profile(PeerId)
|
||||||
case gift(from: PeerId, to: PeerId, duration: Int32)
|
case gift(from: PeerId, to: PeerId, duration: Int32)
|
||||||
@ -73,6 +74,8 @@ public enum PremiumSource: Equatable {
|
|||||||
return "double_limits__accounts"
|
return "double_limits__accounts"
|
||||||
case .about:
|
case .about:
|
||||||
return "double_limits__about"
|
return "double_limits__about"
|
||||||
|
case .animatedEmoji:
|
||||||
|
return "animated_emoji"
|
||||||
case let .profile(id):
|
case let .profile(id):
|
||||||
return "profile__\(id.id._internalGetInt64Value())"
|
return "profile__\(id.id._internalGetInt64Value())"
|
||||||
case .gift, .giftTerms:
|
case .gift, .giftTerms:
|
||||||
|
@ -2873,8 +2873,8 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
|
|||||||
strongSelf.dismissTextInput()
|
strongSelf.dismissTextInput()
|
||||||
|
|
||||||
var replaceImpl: ((ViewController) -> Void)?
|
var replaceImpl: ((ViewController) -> Void)?
|
||||||
let controller = PremiumDemoScreen(context: strongSelf.context, subject: .premiumStickers, action: {
|
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?(controller)
|
||||||
})
|
})
|
||||||
replaceImpl = { [weak controller] c in
|
replaceImpl = { [weak controller] c in
|
||||||
|
@ -287,7 +287,7 @@ final class ChatEntityKeyboardInputNode: ChatInputNode {
|
|||||||
|
|
||||||
var replaceImpl: ((ViewController) -> Void)?
|
var replaceImpl: ((ViewController) -> Void)?
|
||||||
let controller = PremiumDemoScreen(context: context, subject: .animatedEmoji, action: {
|
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?(controller)
|
||||||
})
|
})
|
||||||
replaceImpl = { [weak controller] c in
|
replaceImpl = { [weak controller] c in
|
||||||
@ -1526,7 +1526,7 @@ final class EntityInputView: UIView, AttachmentTextInputPanelInputView, UIInputV
|
|||||||
|
|
||||||
var replaceImpl: ((ViewController) -> Void)?
|
var replaceImpl: ((ViewController) -> Void)?
|
||||||
let controller = PremiumDemoScreen(context: strongSelf.context, subject: .animatedEmoji, action: {
|
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?(controller)
|
||||||
})
|
})
|
||||||
replaceImpl = { [weak controller] c in
|
replaceImpl = { [weak controller] c in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user