mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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();
|
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) {
|
switch (point) {
|
||||||
case EnterPoint::Start:
|
case EnterPoint::Start:
|
||||||
getNearestDC();
|
getNearestDC();
|
||||||
|
@ -100,12 +106,6 @@ Widget::Widget(
|
||||||
|
|
||||||
fixOrder();
|
fixOrder();
|
||||||
|
|
||||||
_account->mtpValue(
|
|
||||||
) | rpl::start_with_next([=](not_null<MTP::Instance*> instance) {
|
|
||||||
_api.emplace(instance);
|
|
||||||
createLanguageLink();
|
|
||||||
}, lifetime());
|
|
||||||
|
|
||||||
subscribe(Lang::CurrentCloudManager().firstLanguageSuggestion(), [=] {
|
subscribe(Lang::CurrentCloudManager().firstLanguageSuggestion(), [=] {
|
||||||
createLanguageLink();
|
createLanguageLink();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue