mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various improvements
This commit is contained in:
@@ -1019,7 +1019,7 @@ private enum StatsEntry: ItemListNodeEntry {
|
||||
icon = .image(color: color, name: "Premium/Unclaimed")
|
||||
} else if boost.flags.contains(.isGiveaway) {
|
||||
if let stars = boost.stars {
|
||||
title = presentationData.strings.Stats_Boosts_Stars(Int32(stars))
|
||||
title = presentationData.strings.Stats_Boosts_Stars(Int32(clamping: stars))
|
||||
icon = .image(color: .stars, name: "Premium/PremiumStar")
|
||||
expiresString = expiresValue
|
||||
} else {
|
||||
@@ -1476,7 +1476,7 @@ private func boostsEntries(
|
||||
title = presentationData.strings.Stats_Boosts_PrepaidGiveawayCount(giveaway.quantity)
|
||||
text = presentationData.strings.Stats_Boosts_PrepaidGiveawayMonths("\(months)").string
|
||||
case let .stars(stars, _):
|
||||
title = presentationData.strings.Stats_Boosts_Stars(Int32(stars))
|
||||
title = presentationData.strings.Stats_Boosts_Stars(Int32(clamping: stars))
|
||||
text = presentationData.strings.Stats_Boosts_StarsWinners(giveaway.quantity)
|
||||
}
|
||||
entries.append(.boostPrepaid(i, presentationData.theme, title, text, giveaway))
|
||||
|
||||
Reference in New Issue
Block a user