mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Refactor string generation
This commit is contained in:
@@ -75,7 +75,7 @@ private enum UpdateInfoControllerEntry: ItemListNodeEntry {
|
||||
return UpdateInfoItem(theme: theme, appIcon: icon, title: title, text: text, entities: entities, sectionId: self.section, style: .blocks, linkItemAction: { action, itemLink in
|
||||
arguments.linkAction(action, itemLink)
|
||||
})
|
||||
case let .update(theme, title):
|
||||
case let .update(_, title):
|
||||
return ItemListActionItem(presentationData: presentationData, title: title, kind: .generic, alignment: .center, sectionId: self.section, style: .blocks, action: {
|
||||
arguments.openAppStorePage()
|
||||
})
|
||||
@@ -86,7 +86,7 @@ private enum UpdateInfoControllerEntry: ItemListNodeEntry {
|
||||
private func updateInfoControllerEntries(theme: PresentationTheme, strings: PresentationStrings, appIcon: PresentationAppIcon?, appUpdateInfo: AppUpdateInfo) -> [UpdateInfoControllerEntry] {
|
||||
var entries: [UpdateInfoControllerEntry] = []
|
||||
|
||||
entries.append(.info(theme, appIcon, strings.Update_AppVersion(appUpdateInfo.version).0, appUpdateInfo.text, appUpdateInfo.entities))
|
||||
entries.append(.info(theme, appIcon, strings.Update_AppVersion(appUpdateInfo.version).string, appUpdateInfo.text, appUpdateInfo.entities))
|
||||
entries.append(.update(theme, strings.Update_UpdateApp))
|
||||
|
||||
return entries
|
||||
|
||||
Reference in New Issue
Block a user