mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Refactor string generation
This commit is contained in:
@@ -117,13 +117,13 @@ final class CallControllerToastContainerNode: ASDisplayNode {
|
||||
toastContent = CallControllerToastItemNode.Content(
|
||||
key: .camera,
|
||||
image: .camera,
|
||||
text: strings.Call_CameraOff(self.title).0
|
||||
text: strings.Call_CameraOff(self.title).string
|
||||
)
|
||||
case .microphone:
|
||||
toastContent = CallControllerToastItemNode.Content(
|
||||
key: .microphone,
|
||||
image: .microphone,
|
||||
text: strings.Call_MicrophoneOff(self.title).0
|
||||
text: strings.Call_MicrophoneOff(self.title).string
|
||||
)
|
||||
case .mute:
|
||||
toastContent = CallControllerToastItemNode.Content(
|
||||
@@ -135,7 +135,7 @@ final class CallControllerToastContainerNode: ASDisplayNode {
|
||||
toastContent = CallControllerToastItemNode.Content(
|
||||
key: .battery,
|
||||
image: .battery,
|
||||
text: strings.Call_BatteryLow(self.title).0
|
||||
text: strings.Call_BatteryLow(self.title).string
|
||||
)
|
||||
}
|
||||
let toastHeight = toastNode.update(width: width, content: toastContent, transition: toastTransition)
|
||||
|
||||
Reference in New Issue
Block a user