Various Fixes

This commit is contained in:
Ilya Laktyushin
2021-02-15 01:54:43 +04:00
parent 0456336a34
commit 1651d90d76
13 changed files with 1643 additions and 1600 deletions

View File

@@ -231,6 +231,9 @@ public final class PermissionController: ViewController {
self.controllerNode.allow = { [weak self] in
self?.allow?()
}
self.controllerNode.dismiss = { [weak self] in
self?.dismiss()
}
self.controllerNode.openPrivacyPolicy = { [weak self] in
if let strongSelf = self {
strongSelf.context.sharedContext.openExternalUrl(context: strongSelf.context, urlContext: .generic, url: "https://telegram.org/privacy", forceExternal: true, presentationData: strongSelf.context.sharedContext.currentPresentationData.with { $0 }, navigationController: nil, dismissInput: {})