mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Display located group creation in modal overlay
This commit is contained in:
parent
cb219c0b7b
commit
d298bf4f42
@ -517,9 +517,12 @@ public func peersNearbyController(context: AccountContext) -> ViewController {
|
||||
|> deliverOnMainQueue).start(next: { available in
|
||||
if available {
|
||||
let controller = PermissionController(context: context, splashScreen: true)
|
||||
controller.navigationPresentation = .modalInLargeLayout
|
||||
controller.setState(.custom(icon: PermissionControllerCustomIcon(light: UIImage(bundleImageName: "Location/LocalGroupLightIcon"), dark: UIImage(bundleImageName: "Location/LocalGroupDarkIcon")), title: presentationData.strings.LocalGroup_Title, subtitle: address, text: presentationData.strings.LocalGroup_Text, buttonTitle: presentationData.strings.LocalGroup_ButtonTitle, footerText: presentationData.strings.LocalGroup_IrrelevantWarning), animated: false)
|
||||
controller.proceed = { result in
|
||||
replaceTopControllerImpl?(context.sharedContext.makeCreateGroupController(context: context, peerIds: [], initialTitle: nil, mode: .locatedGroup(latitude: latitude, longitude: longitude, address: address), completion: nil))
|
||||
let controller = context.sharedContext.makeCreateGroupController(context: context, peerIds: [], initialTitle: nil, mode: .locatedGroup(latitude: latitude, longitude: longitude, address: address), completion: nil)
|
||||
controller.navigationPresentation = .modalInLargeLayout
|
||||
replaceTopControllerImpl?(controller)
|
||||
}
|
||||
pushControllerImpl?(controller)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user