mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
parent
bfb18929f2
commit
667949318c
@ -4,6 +4,7 @@ import SGConfig
|
||||
import SGSettingsUI
|
||||
import SGDebugUI
|
||||
import SFSafariViewControllerPlus
|
||||
import ContactListUI
|
||||
import Foundation
|
||||
import Display
|
||||
import SafariServices
|
||||
@ -1007,6 +1008,11 @@ func openExternalUrlImpl(context: AccountContext, urlContext: OpenURLContext, ur
|
||||
case "ios_settings":
|
||||
context.sharedContext.applicationBindings.openSettings()
|
||||
return
|
||||
case "contacts":
|
||||
if let lastViewController = navigationController?.viewControllers.last as? ViewController {
|
||||
lastViewController.present(ContactsController(context: context), in: .window(.root), with: ViewControllerPresentationArguments(presentationAnimation: .modalSheet))
|
||||
}
|
||||
return
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user