From b2b1e058910789ffb1ceca7cc3e92ac92c0e5f43 Mon Sep 17 00:00:00 2001 From: Kiryl Date: Fri, 21 Jun 2024 12:21:20 +0400 Subject: [PATCH] feat: add Organic Maps app to the open in options --- Telegram/BUILD | 1 + submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Telegram/BUILD b/Telegram/BUILD index ad348cdc049..43a7f779782 100644 --- a/Telegram/BUILD +++ b/Telegram/BUILD @@ -1783,6 +1783,7 @@ plist_fragment( yandexmaps yandexnavi comgooglemaps + om youtube twitter vk diff --git a/submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift b/submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift index e359d7895ba..d085ca815ef 100644 --- a/submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift +++ b/submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift @@ -243,7 +243,11 @@ private func allOpenInOptions(context: AccountContext, item: OpenInItem) -> [Ope return .openUrl(url: "yandexmaps://maps.yandex.ru/?pt=\(lon),\(lat)&z=16") } })) - + + options.append(OpenInOption(identifier: "organicMaps", application: .other(title: "Organic Maps", identifier: 1567437057, scheme: "om", store: nil), action: { + return .openUrl(url: "om://map?v=1&ll=\(lat),\(lon)") + })) + options.append(OpenInOption(identifier: "uber", application: .other(title: "Uber", identifier: 368677368, scheme: "uber", store: nil), action: { let dropoffName: String let dropoffAddress: String