mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Various fixes
This commit is contained in:
@@ -1176,6 +1176,9 @@ public func universalServiceMessageString(presentationData: (PresentationTheme,
|
||||
if isPrepaidUpgrade {
|
||||
let starsPrice = strings.Notification_PrepaidGiftUpgrade_Stars(Int32(clamping: upgradeStars ?? 0))
|
||||
attributedString = NSAttributedString(string: strings.Notification_PrepaidGiftUpgrade(starsPrice).string, font: titleFont, textColor: primaryTextColor)
|
||||
} else if case let .generic(gift) = gift {
|
||||
let starsPrice = strings.Notification_GiftStars_Stars(Int32(clamping: gift.price))
|
||||
attributedString = NSAttributedString(string: strings.Notification_GiftStars(starsPrice).string, font: titleFont, textColor: primaryTextColor)
|
||||
} else {
|
||||
attributedString = NSAttributedString(string: strings.Notification_Gift, font: titleFont, textColor: primaryTextColor)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user