2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Support reading me_url_prefix from config.

The default value 'https://t.me' can be overriden from server config.
This commit is contained in:
John Preston
2017-03-10 20:25:43 +03:00
parent 70b6335b11
commit 5bb68cfd8f
16 changed files with 74 additions and 30 deletions

View File

@@ -560,6 +560,7 @@ void Instance::Private::configLoadDone(const MTPConfig &result) {
Global::SetEditTimeLimit(data.vedit_time_limit.v); // ?
Global::SetStickersRecentLimit(data.vstickers_recent_limit.v);
Global::SetPinnedDialogsCountMax(data.vpinned_dialogs_count_max.v);
Messenger::Instance().setInternalLinkDomain(qs(data.vme_url_prefix));
Local::writeSettings();