From c4568db488b2366137aa7301d48155e64473bd97 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 23 Jan 2023 17:43:15 +0300 Subject: [PATCH] Add more t.me domains for web clients. --- td/telegram/LinkManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/td/telegram/LinkManager.cpp b/td/telegram/LinkManager.cpp index 3830fb046..1ca7eba37 100644 --- a/td/telegram/LinkManager.cpp +++ b/td/telegram/LinkManager.cpp @@ -925,6 +925,11 @@ LinkManager::LinkInfo LinkManager::get_link_info(Slice link) { string cur_t_me_url; vector t_me_urls{Slice("t.me"), Slice("telegram.me"), Slice("telegram.dog")}; +#if TD_EMSCRIPTEN + t_me_urls.push_back(Slice("web.t.me")); + t_me_urls.push_back(Slice("k.t.me")); + t_me_urls.push_back(Slice("z.t.me")); +#endif if (Scheduler::context() != nullptr) { // for tests only cur_t_me_url = G()->get_option_string("t_me_url"); if (tolower_begins_with(cur_t_me_url, "http://") || tolower_begins_with(cur_t_me_url, "https://")) {