Skip to content

Commit be54adb

Browse files
committed
Various fixes
1 parent c54e9fb commit be54adb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

submodules/ChatListUI/Sources/Node/ChatListNode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2503,7 +2503,7 @@ public final class ChatListNode: ListView {
25032503
case let .user(userType):
25042504
if case let .user(user) = peer {
25052505
match = true
2506-
if user.id.isVerificationCodes {
2506+
if user.id.isVerificationCodes || user.id.isTelegramNotifications {
25072507
match = false
25082508
}
25092509
if let isBot = userType.isBot {

submodules/TelegramStringFormatting/Sources/ServiceMessageStrings.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)