@@ -1167,7 +1167,7 @@ public func universalServiceMessageString(presentationData: (PresentationTheme,
11671167 attributedString = mutableString
11681168 case . prizeStars:
11691169 attributedString = NSAttributedString ( string: strings. Notification_StarsPrize, font: titleFont, textColor: primaryTextColor)
1170- case let . starGift( gift, _, text, entities, _, _, _, _, _, upgradeStars, _, isPrepaidUpgrade, _, peerId, senderId, _, _, _, _ ) :
1170+ case let . starGift( gift, _, text, entities, _, _, _, _, _, upgradeStars, _, isPrepaidUpgrade, _, peerId, senderId, _, _, _, upgradeSeparate ) :
11711171 if !forAdditionalServiceMessage {
11721172 if let text {
11731173 let mutableAttributedString = NSMutableAttributedString ( attributedString: stringWithAppliedEntities ( text, entities: entities ?? [ ] , baseColor: primaryTextColor, linkColor: primaryTextColor, baseFont: titleFont, linkFont: titleBoldFont, boldFont: titleBoldFont, italicFont: titleFont, boldItalicFont: titleBoldFont, fixedFont: titleFont, blockQuoteFont: titleFont, underlineLinks: false , message: message. _asMessage ( ) ) )
@@ -1177,7 +1177,7 @@ public func universalServiceMessageString(presentationData: (PresentationTheme,
11771177 }
11781178 } else if case let . generic( gift) = gift {
11791179 var finalPrice = gift. price
1180- if let upgradeStars {
1180+ if let upgradeStars, !upgradeSeparate {
11811181 finalPrice += upgradeStars
11821182 }
11831183 let starsPrice = strings. Notification_StarsGift_Stars ( Int32 ( clamping: finalPrice) )
0 commit comments