diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index d9f0af51bc..35ea83736b 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -8591,3 +8591,5 @@ Sorry for the inconvenience."; "StorageManagement.TabMedia" = "Media"; "StorageManagement.TabFiles" = "Files"; "StorageManagement.TabMusic" = "Music"; + +"ClearCache.Never" = "Never"; diff --git a/submodules/SettingsUI/Sources/Data and Storage/DataAndStorageSettingsController.swift b/submodules/SettingsUI/Sources/Data and Storage/DataAndStorageSettingsController.swift index 86198d5553..c6228fbbd4 100644 --- a/submodules/SettingsUI/Sources/Data and Storage/DataAndStorageSettingsController.swift +++ b/submodules/SettingsUI/Sources/Data and Storage/DataAndStorageSettingsController.swift @@ -542,8 +542,8 @@ public func dataAndStorageController(context: AccountContext, focusOnItemTag: Da let actionsDisposable = DisposableSet() - let cacheUsagePromise = Promise() - cacheUsagePromise.set(cacheUsageStats(context: context)) + //let cacheUsagePromise = Promise() + //cacheUsagePromise.set(cacheUsageStats(context: context)) let updateSensitiveContentDisposable = MetaDisposable() actionsDisposable.add(updateSensitiveContentDisposable) diff --git a/submodules/TelegramUI/Components/StorageUsageScreen/Sources/StorageUsageScreen.swift b/submodules/TelegramUI/Components/StorageUsageScreen/Sources/StorageUsageScreen.swift index 9a568e746c..b6013b255d 100644 --- a/submodules/TelegramUI/Components/StorageUsageScreen/Sources/StorageUsageScreen.swift +++ b/submodules/TelegramUI/Components/StorageUsageScreen/Sources/StorageUsageScreen.swift @@ -1267,7 +1267,7 @@ final class StorageUsageScreenComponent: Component { let value = self.cacheSettings?.categoryStorageTimeout[mappedCategory] ?? Int32.max let optionText: String if value == Int32.max { - optionText = environment.strings.ClearCache_Forever + optionText = environment.strings.ClearCache_Never } else { optionText = timeIntervalString(strings: environment.strings, value: value) }