mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-26 00:12:25 +00:00
Refresh appconfig after login.
This commit is contained in:
parent
5d32ba5867
commit
e6f3cd1d56
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user