Update API [skip ci]

This commit is contained in:
Isaac
2025-06-23 21:52:31 +02:00
parent 2180826318
commit 9a14b076c6
22 changed files with 195 additions and 165 deletions

View File

@@ -258,7 +258,17 @@ public class ChatMessageActionBubbleContentNode: ChatMessageBubbleContentNode {
}
)).string
let amountString = amount == 1 ? "\(amount) Star" : "\(amount) Stars"
let amountString: String
if let amount, amount.amount != .zero {
switch amount.currency {
case .stars:
amountString = amount.amount.value == 1 ? "\(amount.amount) Star" : "\(amount.amount) Stars"
case .ton:
amountString = "\(amount.amount) TON"
}
} else {
amountString = "0 Stars"
}
let rawString: String
if let timestamp {