mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various fixes
This commit is contained in:
@@ -477,7 +477,7 @@ private final class DemoSheetContent: CombinedComponent {
|
|||||||
self.context = context
|
self.context = context
|
||||||
self.subject = subject
|
self.subject = subject
|
||||||
self.source = source
|
self.source = source
|
||||||
self.order = order ?? [.moreUpload, .fasterDownload, .voiceToText, .noAds, .uniqueReactions, .premiumStickers, .animatedEmoji, .advancedChatManagement, .profileBadge, .animatedUserpics, .appIcons, .translation, .stories]
|
self.order = order ?? [.moreUpload, .fasterDownload, .voiceToText, .noAds, .uniqueReactions, .premiumStickers, .animatedEmoji, .advancedChatManagement, .profileBadge, .animatedUserpics, .appIcons, .translation, .stories, .colors, .wallpapers]
|
||||||
self.action = action
|
self.action = action
|
||||||
self.dismiss = dismiss
|
self.dismiss = dismiss
|
||||||
}
|
}
|
||||||
@@ -946,7 +946,7 @@ private final class DemoSheetContent: CombinedComponent {
|
|||||||
)
|
)
|
||||||
availableItems[.colors] = DemoPagerComponent.Item(
|
availableItems[.colors] = DemoPagerComponent.Item(
|
||||||
AnyComponentWithIdentity(
|
AnyComponentWithIdentity(
|
||||||
id: PremiumDemoScreen.Subject.animatedUserpics,
|
id: PremiumDemoScreen.Subject.colors,
|
||||||
component: AnyComponent(
|
component: AnyComponent(
|
||||||
PageComponent(
|
PageComponent(
|
||||||
content: AnyComponent(PhoneDemoComponent(
|
content: AnyComponent(PhoneDemoComponent(
|
||||||
@@ -964,7 +964,7 @@ private final class DemoSheetContent: CombinedComponent {
|
|||||||
)
|
)
|
||||||
availableItems[.wallpapers] = DemoPagerComponent.Item(
|
availableItems[.wallpapers] = DemoPagerComponent.Item(
|
||||||
AnyComponentWithIdentity(
|
AnyComponentWithIdentity(
|
||||||
id: PremiumDemoScreen.Subject.animatedUserpics,
|
id: PremiumDemoScreen.Subject.wallpapers,
|
||||||
component: AnyComponent(
|
component: AnyComponent(
|
||||||
PageComponent(
|
PageComponent(
|
||||||
content: AnyComponent(PhoneDemoComponent(
|
content: AnyComponent(PhoneDemoComponent(
|
||||||
@@ -1078,6 +1078,8 @@ private final class DemoSheetContent: CombinedComponent {
|
|||||||
buttonAnimationName = "premium_unlock"
|
buttonAnimationName = "premium_unlock"
|
||||||
case .voiceToText:
|
case .voiceToText:
|
||||||
buttonText = strings.Premium_VoiceToText_Proceed
|
buttonText = strings.Premium_VoiceToText_Proceed
|
||||||
|
case .wallpapers:
|
||||||
|
buttonText = strings.Premium_Wallpaper_Proceed
|
||||||
default:
|
default:
|
||||||
buttonText = strings.Common_OK
|
buttonText = strings.Common_OK
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -520,7 +520,7 @@ public class WallpaperGalleryController: ViewController {
|
|||||||
if forBoth && !strongSelf.context.isPremium {
|
if forBoth && !strongSelf.context.isPremium {
|
||||||
let context = strongSelf.context
|
let context = strongSelf.context
|
||||||
var replaceImpl: ((ViewController) -> Void)?
|
var replaceImpl: ((ViewController) -> Void)?
|
||||||
let controller = context.sharedContext.makePremiumDemoController(context: context, subject: .voiceToText, action: {
|
let controller = context.sharedContext.makePremiumDemoController(context: context, subject: .wallpapers, action: {
|
||||||
let controller = context.sharedContext.makePremiumIntroController(context: context, source: .settings, forceDark: false, dismissed: nil)
|
let controller = context.sharedContext.makePremiumIntroController(context: context, source: .settings, forceDark: false, dismissed: nil)
|
||||||
replaceImpl?(controller)
|
replaceImpl?(controller)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user