Gift improvements

This commit is contained in:
Ilya Laktyushin
2025-07-26 11:43:02 +02:00
parent 8d5dc7ff60
commit 37e74f402e
18 changed files with 967 additions and 159 deletions

View File

@@ -1250,7 +1250,7 @@ public func universalServiceMessageString(presentationData: (PresentationTheme,
starsString = strings.Notification_StarsGift_Bought_Stars(Int32(resaleStars.amount.value))
case .ton:
//TODO:localize
starsString = "\(Int32(resaleStars.amount.value)) TON"
starsString = formatTonAmountText(resaleStars.amount.value, dateTimeFormat: dateTimeFormat) + " TON"
}
let giftTitle = "\(gift.title) #\(presentationStringsFormattedNumber(gift.number, dateTimeFormat.groupingSeparator))"
attributes[1] = boldAttributes