mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Payments and more
This commit is contained in:
@@ -165,7 +165,7 @@ public func formatCurrencyAmount(_ amount: Int64, currency: String) -> String {
|
||||
}
|
||||
}
|
||||
|
||||
public func formatCurrencyAmountCustom(_ amount: Int64, currency: String) -> (String, String) {
|
||||
public func formatCurrencyAmountCustom(_ amount: Int64, currency: String) -> (String, String, Bool) {
|
||||
if let entry = currencyFormatterEntries[currency] ?? currencyFormatterEntries["USD"] {
|
||||
var result = ""
|
||||
if amount < 0 {
|
||||
@@ -198,8 +198,8 @@ public func formatCurrencyAmountCustom(_ amount: Int64, currency: String) -> (St
|
||||
result.append(entry.symbol)
|
||||
}*/
|
||||
|
||||
return (result, entry.symbol)
|
||||
return (result, entry.symbol, entry.symbolOnLeft)
|
||||
} else {
|
||||
return ("", "")
|
||||
return ("", "", false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user