mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Fix build
This commit is contained in:
parent
e79e1b2cf9
commit
9072cef8c4
@ -2394,7 +2394,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
|||||||
} else {
|
} else {
|
||||||
var textString: String
|
var textString: String
|
||||||
if isAdmin {
|
if isAdmin {
|
||||||
textString = strongSelf.presentationData.strings.Chat_PostSuggestion_Approve_AdminConfirmationText(message.author.flatMap(EnginePeer.init))?.compactDisplayTitle ?? "").string
|
textString = strongSelf.presentationData.strings.Chat_PostSuggestion_Approve_AdminConfirmationText(message.author.flatMap(EnginePeer.init)?.compactDisplayTitle ?? "").string
|
||||||
|
|
||||||
if let funds {
|
if let funds {
|
||||||
var commissionValue: String
|
var commissionValue: String
|
||||||
@ -2410,10 +2410,10 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
|||||||
switch funds.amount.currency {
|
switch funds.amount.currency {
|
||||||
case .stars:
|
case .stars:
|
||||||
let displayAmount = funds.amount.amount.totalValue * Double(funds.commissionPermille) / 1000.0
|
let displayAmount = funds.amount.amount.totalValue * Double(funds.commissionPermille) / 1000.0
|
||||||
textString += strongSelf.presentationData.strings.Chat.PostSuggestion_Approve_AdminConfirmationPriceStars("\(displayAmount)", "\(commissionValue)")
|
textString += strongSelf.presentationData.strings.Chat_PostSuggestion_Approve_AdminConfirmationPriceStars("\(displayAmount)", "\(commissionValue)").string
|
||||||
case .ton:
|
case .ton:
|
||||||
let displayAmount = Double(funds.amount.amount.value) / 1000000000.0 * Double(funds.commissionPermille) / 1000.0
|
let displayAmount = Double(funds.amount.amount.value) / 1000000000.0 * Double(funds.commissionPermille) / 1000.0
|
||||||
textString += strongSelf.presentationData.strings.Chat.PostSuggestion_Approve_AdminConfirmationPriceTon("\(displayAmount)", "\(commissionValue)")
|
textString += strongSelf.presentationData.strings.Chat_PostSuggestion_Approve_AdminConfirmationPriceTon("\(displayAmount)", "\(commissionValue)").string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user