Various fixes

This commit is contained in:
Ilya Laktyushin
2025-03-07 21:56:17 +04:00
parent 0cd1770a0a
commit cdd987e627
25 changed files with 182 additions and 95 deletions

View File

@@ -1148,7 +1148,7 @@ public func universalServiceMessageString(presentationData: (PresentationTheme,
case let .starGiftUnique(gift, isUpgrade, _, _, _, _, _, peerId, senderId, _):
if case let .unique(gift) = gift {
if !forAdditionalServiceMessage && !"".isEmpty {
attributedString = NSAttributedString(string: "\(gift.title) #\(gift.number)", font: titleFont, textColor: primaryTextColor)
attributedString = NSAttributedString(string: "\(gift.title) #\(presentationStringsFormattedNumber(gift.number, dateTimeFormat.groupingSeparator))", font: titleFont, textColor: primaryTextColor)
} else if let messagePeer = message.peers[message.id.peerId] {
var peerName = EnginePeer(messagePeer).compactDisplayTitle
var peerIds: [(Int, EnginePeer.Id?)] = [(0, messagePeer.id)]