From b5611fdf3efd35b27f6327cfc9b2216da1c3dbcd Mon Sep 17 00:00:00 2001
From: Delta Null <47459550+Null-Delta@users.noreply.github.com>
Date: Fri, 29 Sep 2023 22:42:52 +0300
Subject: [PATCH] Open location in Yango
---
Telegram/BUILD | 1 +
submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/Telegram/BUILD b/Telegram/BUILD
index 4aac94e40bf..a44a58a9f12 100644
--- a/Telegram/BUILD
+++ b/Telegram/BUILD
@@ -1783,6 +1783,7 @@ plist_fragment(
here-location
yandexmaps
yandexnavi
+ yangoride
comgooglemaps
youtube
twitter
diff --git a/submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift b/submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift
index e359d7895ba..f293713b99e 100644
--- a/submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift
+++ b/submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift
@@ -323,6 +323,10 @@ private func allOpenInOptions(context: AccountContext, item: OpenInItem) -> [Ope
return .openUrl(url: url)
}
}))
+
+ options.append(OpenInOption(identifier: "yango", application: .other(title: "Yango", identifier: 1437157286, scheme: "yangoride", store: nil), action: {
+ return .openUrl(url: "yangoride://route?end-lat=\(lat)&end-lon=\(lon)")
+ }))
}
return options
}