From 6637e5b8e38cdd58d55cbc8f2cb46432885622a9 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 7 Dec 2018 12:42:48 +0400 Subject: [PATCH] Revert "Disable custom languages for now." This reverts commit 679347309e9941be758ca91643423aaa631eec77. --- Telegram/SourceFiles/boxes/language_box.cpp | 3 +-- Telegram/SourceFiles/core/local_url_handlers.cpp | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/boxes/language_box.cpp b/Telegram/SourceFiles/boxes/language_box.cpp index 4dd311bbc..cd720952e 100644 --- a/Telegram/SourceFiles/boxes/language_box.cpp +++ b/Telegram/SourceFiles/boxes/language_box.cpp @@ -392,8 +392,7 @@ void Rows::mouseReleaseEvent(QMouseEvent *e) { } bool Rows::canShare(not_null row) const { - // #TODO langs - return false && !_areOfficial && !row->data.id.startsWith('#'); + return !_areOfficial && !row->data.id.startsWith('#'); } bool Rows::canRemove(not_null row) const { diff --git a/Telegram/SourceFiles/core/local_url_handlers.cpp b/Telegram/SourceFiles/core/local_url_handlers.cpp index 5a67e1f99..b4bfe00a4 100644 --- a/Telegram/SourceFiles/core/local_url_handlers.cpp +++ b/Telegram/SourceFiles/core/local_url_handlers.cpp @@ -69,9 +69,8 @@ bool ShowStickerSet(const Match &match, const QVariant &context) { } bool SetLanguage(const Match &match, const QVariant &context) { - // #TODO langs - //const auto languageId = match->captured(1); - //Lang::CurrentCloudManager().switchWithWarning(languageId); + const auto languageId = match->captured(1); + Lang::CurrentCloudManager().switchWithWarning(languageId); return true; }