Revert "Fix passkeys access"

This reverts commit 73b7baf757.
This commit is contained in:
Kylmakalle
2025-12-09 23:52:57 +02:00
parent 150560e269
commit fafafe7ada
4 changed files with 4 additions and 15 deletions

View File

@@ -1,9 +1,5 @@
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
sgdeps = [
"//Swiftgram/SGStrings:SGStrings"
]
swift_library(
name = "PasskeysScreen",
module_name = "PasskeysScreen",
@@ -13,7 +9,7 @@ swift_library(
copts = [
"-warnings-as-errors",
],
deps = sgdeps + [
deps = [
"//submodules/Display",
"//submodules/Postbox",
"//submodules/TelegramCore",

View File

@@ -119,12 +119,7 @@ final class PasskeysScreenComponent: Component {
guard let self, let component = self.component else {
return
}
// MARK: Swiftgram
if let tgUrl = URL(string: "tg://settings/privacy") {
UIApplication.shared.open(tgUrl, options: [:], completionHandler: nil)
}
if ({ return true }()) { return }
//
let decodeBase64: (String) -> Data? = { string in
var string = string.replacingOccurrences(of: "-", with: "+")
.replacingOccurrences(of: "_", with: "/")

View File

@@ -1,4 +1,3 @@
import SGStrings
import Foundation
import UIKit
import Display
@@ -296,7 +295,7 @@ final class PasskeysScreenIntroComponent: Component {
),
content: AnyComponentWithIdentity(
id: AnyHashable(0),
component: AnyComponent(MultilineTextComponent(text: .plain(NSAttributedString(string: "Common.OpenTelegram".i18n(component.strings.baseLanguageCode), font: Font.semibold(17.0), textColor: component.theme.list.itemCheckColors.foregroundColor))))
component: AnyComponent(MultilineTextComponent(text: .plain(NSAttributedString(string: component.strings.Passkeys_ButtonCreate, font: Font.semibold(17.0), textColor: component.theme.list.itemCheckColors.foregroundColor))))
),
action: { [weak self] in
guard let self, let component = self.component else {

View File

@@ -1,4 +1,3 @@
import SGStrings
import Foundation
import UIKit
import Display
@@ -284,7 +283,7 @@ final class PasskeysScreenListComponent: Component {
title: AnyComponent(VStack([
AnyComponentWithIdentity(id: AnyHashable(0), component: AnyComponent(MultilineTextComponent(
text: .plain(NSAttributedString(
string: "Common.OpenTelegram".i18n(component.strings.baseLanguageCode),
string: component.strings.Passkeys_AddPasskey,
font: Font.regular(17.0),
textColor: component.theme.list.itemAccentColor
)),