Various fixes

This commit is contained in:
Ilya Laktyushin
2023-10-30 16:22:12 +04:00
parent c06e869cd1
commit 6fe8e5e447
8 changed files with 196 additions and 164 deletions

View File

@@ -791,9 +791,9 @@ public func createGiveawayController(context: AccountContext, updatedPresentatio
let badgeCount: Int32
switch state.mode {
case .giveaway:
badgeCount = state.subscriptions
badgeCount = state.subscriptions * 4
case .gift:
badgeCount = Int32(state.peers.count)
badgeCount = Int32(state.peers.count) * 4
}
let footerItem = CreateGiveawayFooterItem(theme: presentationData.theme, title: state.mode == .gift ? presentationData.strings.BoostGift_GiftPremium : presentationData.strings.BoostGift_StartGiveaway, badgeCount: badgeCount, isLoading: state.updating, action: {
buyActionImpl?()