Beta version 2.1.14: Fix nearest dc resolve.

This commit is contained in:
John Preston 2020-06-29 22:16:48 +04:00
parent db435aa9b1
commit a9eedf0024

View file

@ -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();
});