mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-06 17:00:13 +00:00
Various fixes
This commit is contained in:
parent
c54e9fbedf
commit
be54adbfa7
@ -2503,7 +2503,7 @@ public final class ChatListNode: ListView {
|
||||
case let .user(userType):
|
||||
if case let .user(user) = peer {
|
||||
match = true
|
||||
if user.id.isVerificationCodes {
|
||||
if user.id.isVerificationCodes || user.id.isTelegramNotifications {
|
||||
match = false
|
||||
}
|
||||
if let isBot = userType.isBot {
|
||||
|
||||
@ -1167,7 +1167,7 @@ public func universalServiceMessageString(presentationData: (PresentationTheme,
|
||||
attributedString = mutableString
|
||||
case .prizeStars:
|
||||
attributedString = NSAttributedString(string: strings.Notification_StarsPrize, font: titleFont, textColor: primaryTextColor)
|
||||
case let .starGift(gift, _, text, entities, _, _, _, _, _, upgradeStars, _, isPrepaidUpgrade, _, peerId, senderId, _, _, _, _):
|
||||
case let .starGift(gift, _, text, entities, _, _, _, _, _, upgradeStars, _, isPrepaidUpgrade, _, peerId, senderId, _, _, _, upgradeSeparate):
|
||||
if !forAdditionalServiceMessage {
|
||||
if let text {
|
||||
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,
|
||||
}
|
||||
} else if case let .generic(gift) = gift {
|
||||
var finalPrice = gift.price
|
||||
if let upgradeStars {
|
||||
if let upgradeStars, !upgradeSeparate {
|
||||
finalPrice += upgradeStars
|
||||
}
|
||||
let starsPrice = strings.Notification_StarsGift_Stars(Int32(clamping: finalPrice))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user