From 679347309e9941be758ca91643423aaa631eec77 Mon Sep 17 00:00:00 2001
From: John Preston <johnprestonmail@gmail.com>
Date: Tue, 4 Dec 2018 10:58:17 +0400
Subject: [PATCH] Disable custom languages for now.

---
 Telegram/SourceFiles/boxes/language_box.cpp      | 3 ++-
 Telegram/SourceFiles/core/local_url_handlers.cpp | 5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Telegram/SourceFiles/boxes/language_box.cpp b/Telegram/SourceFiles/boxes/language_box.cpp
index cd720952e..4dd311bbc 100644
--- a/Telegram/SourceFiles/boxes/language_box.cpp
+++ b/Telegram/SourceFiles/boxes/language_box.cpp
@@ -392,7 +392,8 @@ void Rows::mouseReleaseEvent(QMouseEvent *e) {
 }
 
 bool Rows::canShare(not_null<const Row*> row) const {
-	return !_areOfficial && !row->data.id.startsWith('#');
+	// #TODO langs
+	return false && !_areOfficial && !row->data.id.startsWith('#');
 }
 
 bool Rows::canRemove(not_null<const Row*> row) const {
diff --git a/Telegram/SourceFiles/core/local_url_handlers.cpp b/Telegram/SourceFiles/core/local_url_handlers.cpp
index b4bfe00a4..5a67e1f99 100644
--- a/Telegram/SourceFiles/core/local_url_handlers.cpp
+++ b/Telegram/SourceFiles/core/local_url_handlers.cpp
@@ -69,8 +69,9 @@ bool ShowStickerSet(const Match &match, const QVariant &context) {
 }
 
 bool SetLanguage(const Match &match, const QVariant &context) {
-	const auto languageId = match->captured(1);
-	Lang::CurrentCloudManager().switchWithWarning(languageId);
+	// #TODO langs
+	//const auto languageId = match->captured(1);
+	//Lang::CurrentCloudManager().switchWithWarning(languageId);
 	return true;
 }