From d95219e0b1c69e544b86384ed520b43cf59a3bc7 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Tue, 21 Dec 2021 23:26:55 +0400 Subject: [PATCH] Various Fixes --- .../Sources/Data and Storage/StorageUsageController.swift | 2 +- submodules/UrlWhitelist/Sources/UrlWhitelist.swift | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/submodules/SettingsUI/Sources/Data and Storage/StorageUsageController.swift b/submodules/SettingsUI/Sources/Data and Storage/StorageUsageController.swift index 4939d18b57..893a90de24 100644 --- a/submodules/SettingsUI/Sources/Data and Storage/StorageUsageController.swift +++ b/submodules/SettingsUI/Sources/Data and Storage/StorageUsageController.swift @@ -507,7 +507,7 @@ public func storageUsageController(context: AccountContext, cacheUsagePromise: P } else { otherSize = (!otherSize.0, otherSize.1) } - controller?.updateItem(groupIndex: 0, itemIndex: itemIndex, { item in + controller?.updateItem(groupIndex: 0, itemIndex: itemIndex + 1, { item in if let item = item as? ActionSheetCheckboxItem { return ActionSheetCheckboxItem(title: item.title, label: item.label, value: !item.value, action: item.action) } diff --git a/submodules/UrlWhitelist/Sources/UrlWhitelist.swift b/submodules/UrlWhitelist/Sources/UrlWhitelist.swift index 3f12ac2e08..47bcf4ec20 100644 --- a/submodules/UrlWhitelist/Sources/UrlWhitelist.swift +++ b/submodules/UrlWhitelist/Sources/UrlWhitelist.swift @@ -2,7 +2,8 @@ import Foundation private let whitelistedHosts: Set = Set([ "t.me", - "telegram.me" + "telegram.me", + "telegra.ph" ]) public func isConcealedUrlWhitelisted(_ url: URL) -> Bool {