From d298bf4f427b577261cb817af2c99bc201e63522 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Mon, 11 May 2020 16:52:15 +0400 Subject: [PATCH] Display located group creation in modal overlay --- submodules/PeersNearbyUI/Sources/PeersNearbyController.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/submodules/PeersNearbyUI/Sources/PeersNearbyController.swift b/submodules/PeersNearbyUI/Sources/PeersNearbyController.swift index 87bd5d4949..e452a0a454 100644 --- a/submodules/PeersNearbyUI/Sources/PeersNearbyController.swift +++ b/submodules/PeersNearbyUI/Sources/PeersNearbyController.swift @@ -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 {