mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Refactor string generation
This commit is contained in:
@@ -314,12 +314,12 @@ public final class SecretMediaPreviewController: ViewController {
|
||||
let text: String
|
||||
if let file = media as? TelegramMediaFile {
|
||||
if file.isAnimated {
|
||||
text = strongSelf.presentationData.strings.SecretGIF_NotViewedYet(peerTitle).0
|
||||
text = strongSelf.presentationData.strings.SecretGIF_NotViewedYet(peerTitle).string
|
||||
} else {
|
||||
text = strongSelf.presentationData.strings.SecretVideo_NotViewedYet(peerTitle).0
|
||||
text = strongSelf.presentationData.strings.SecretVideo_NotViewedYet(peerTitle).string
|
||||
}
|
||||
} else {
|
||||
text = strongSelf.presentationData.strings.SecretImage_NotViewedYet(peerTitle).0
|
||||
text = strongSelf.presentationData.strings.SecretImage_NotViewedYet(peerTitle).string
|
||||
}
|
||||
contentNode.setText(text)
|
||||
strongSelf.controllerNode.updatePresentationState({
|
||||
|
||||
Reference in New Issue
Block a user