mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-20 08:07:09 +02:00
Beta version 2.1.14: Fix nearest dc resolve.
This commit is contained in:
parent
db435aa9b1
commit
a9eedf0024
1 changed files with 6 additions and 6 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue