mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Fix build
This commit is contained in:
@@ -1168,7 +1168,7 @@ public func privacyAndSecurityController(context: AccountContext, initialSetting
|
|||||||
authorizationController.presentationContextProvider = controller
|
authorizationController.presentationContextProvider = controller
|
||||||
authorizationController.performRequests()
|
authorizationController.performRequests()
|
||||||
|
|
||||||
controller.authorizationCompletion = { [weak controller, weak codeController] credentials in
|
controller?.authorizationCompletion = { [weak controller, weak codeController] credentials in
|
||||||
switch authorization.credential {
|
switch authorization.credential {
|
||||||
case let appleIdCredential as ASAuthorizationAppleIDCredential:
|
case let appleIdCredential as ASAuthorizationAppleIDCredential:
|
||||||
guard let tokenData = appleIdCredential.identityToken, let token = String(data: tokenData, encoding: .utf8) else {
|
guard let tokenData = appleIdCredential.identityToken, let token = String(data: tokenData, encoding: .utf8) else {
|
||||||
|
|||||||
Reference in New Issue
Block a user