mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Beta version 2.1.14: Fix nearest dc resolve.
This commit is contained in:
@@ -84,6 +84,12 @@ Widget::Widget(
|
||||
|
||||
getData()->country = ComputeNewAccountCountry();
|
||||
|
||||
_account->mtpValue(
|
||||
) | rpl::start_with_next([=](not_null<MTP::Instance*> instance) {
|
||||
_api.emplace(instance);
|
||||
crl::on_main(this, [=] { createLanguageLink(); });
|
||||
}, lifetime());
|
||||
|
||||
switch (point) {
|
||||
case EnterPoint::Start:
|
||||
getNearestDC();
|
||||
@@ -100,12 +106,6 @@ Widget::Widget(
|
||||
|
||||
fixOrder();
|
||||
|
||||
_account->mtpValue(
|
||||
) | rpl::start_with_next([=](not_null<MTP::Instance*> instance) {
|
||||
_api.emplace(instance);
|
||||
createLanguageLink();
|
||||
}, lifetime());
|
||||
|
||||
subscribe(Lang::CurrentCloudManager().firstLanguageSuggestion(), [=] {
|
||||
createLanguageLink();
|
||||
});
|
||||
|
Reference in New Issue
Block a user