Various Fixes

This commit is contained in:
Ilya Laktyushin 2021-12-21 23:26:55 +04:00
parent 1a8b151446
commit d95219e0b1
2 changed files with 3 additions and 2 deletions

View File

@ -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)
}

View File

@ -2,7 +2,8 @@ import Foundation
private let whitelistedHosts: Set<String> = Set([
"t.me",
"telegram.me"
"telegram.me",
"telegra.ph"
])
public func isConcealedUrlWhitelisted(_ url: URL) -> Bool {