Group boosts

This commit is contained in:
Ilya Laktyushin
2024-02-01 12:29:07 +04:00
parent 2716a936bf
commit 1b2b7dc403
120 changed files with 5295 additions and 887 deletions

View File

@@ -1749,7 +1749,7 @@ public final class SharedAccountContextImpl: SharedAccountContext {
}, displayGiveawayParticipationStatus: { _ in
}, openPremiumStatusInfo: { _, _, _, _ in
}, openRecommendedChannelContextMenu: { _, _, _ in
}, openGroupBoostInfo: { _ in
}, openGroupBoostInfo: { _, _ in
}, requestMessageUpdate: { _, _ in
}, cancelInteractiveKeyboardGestures: {
}, dismissTextInput: {
@@ -1939,6 +1939,8 @@ public final class SharedAccountContextImpl: SharedAccountContext {
mappedSource = .storiesExpirationDurations
case .storiesSuggestedReactions:
mappedSource = .storiesSuggestedReactions
case .storiesHigherQuality:
mappedSource = .storiesHigherQuality
case let .channelBoost(peerId):
mappedSource = .channelBoost(peerId)
case .nameColor:
@@ -1951,6 +1953,8 @@ public final class SharedAccountContextImpl: SharedAccountContext {
mappedSource = .presence
case .readTime:
mappedSource = .readTime
case .messageTags:
mappedSource = .messageTags
}
let controller = PremiumIntroScreen(context: context, modal: modal, source: mappedSource, forceDark: forceDark)
controller.wasDismissed = dismissed
@@ -1994,6 +1998,12 @@ public final class SharedAccountContextImpl: SharedAccountContext {
mappedSubject = .colors
case .wallpapers:
mappedSubject = .wallpapers
case .messageTags:
mappedSubject = .messageTags
case .lastSeen:
mappedSubject = .lastSeen
case .messagePrivacy:
mappedSubject = .messagePrivacy
}
return PremiumDemoScreen(context: context, subject: mappedSubject, action: action)
}