From af2db89da261b20b9132a582e0bbcabbe6a42617 Mon Sep 17 00:00:00 2001
From: Delta Null <47459550+Null-Delta@users.noreply.github.com>
Date: Thu, 7 Sep 2023 22:48:20 +0300
Subject: [PATCH] Open location in Yandex Go
---
Telegram/BUILD | 1 +
submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/Telegram/BUILD b/Telegram/BUILD
index 4aac94e40bf..6927b201e99 100644
--- a/Telegram/BUILD
+++ b/Telegram/BUILD
@@ -1782,6 +1782,7 @@ plist_fragment(
foursquare
here-location
yandexmaps
+ yandextaxi
yandexnavi
comgooglemaps
youtube
diff --git a/submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift b/submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift
index e359d7895ba..c944b5820fa 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: "yandexGo", application: .other(title: "Yangex Go", identifier: 472650686, scheme: "yandextaxi", store: nil), action: {
+ return .openUrl(url: "yandextaxi://route?end-lat=\(lat)&end-lon=\(lon)")
+ }))
}
return options
}