mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +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();
|
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();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user