Resend non-authorization requests on main DC change.

This commit is contained in:
John Preston
2021-08-30 20:32:30 +03:00
parent ae40ea9336
commit 2d0bcf7dca
7 changed files with 56 additions and 39 deletions

View File

@@ -164,7 +164,7 @@ CloudManager::CloudManager(Instance &langpack)
_api.reset();
}
return account
? account->mtpValue()
? account->mtpMainSessionValue()
: rpl::never<not_null<MTP::Instance*>>();
}) | rpl::flatten_latest(
) | rpl::start_with_next([=](not_null<MTP::Instance*> instance) {