Refresh appconfig after login.

This commit is contained in:
John Preston 2020-06-30 13:01:59 +04:00
parent 5d32ba5867
commit e6f3cd1d56

View File

@ -24,6 +24,13 @@ AppConfig::AppConfig(not_null<Account*> account) : _account(account) {
_api.emplace(instance);
refresh();
}, _lifetime);
account->sessionChanges(
) | rpl::filter([=](Session *session) {
return (session != nullptr);
}) | rpl::start_with_next([=] {
refresh();
}, _lifetime);
}
void AppConfig::refresh() {