2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add session->appConfig() shortcut.

This commit is contained in:
John Preston
2024-03-29 15:30:50 +04:00
parent 3b5814edae
commit da7a796edb
35 changed files with 98 additions and 115 deletions

View File

@@ -138,10 +138,10 @@ Session::Session(
}, _lifetime);
#ifndef OS_MAC_STORE
_account->appConfig().value(
appConfig().value(
) | rpl::start_with_next([=] {
_premiumPossible = !_account->appConfig().get<bool>(
"premium_purchase_blocked",
_premiumPossible = !appConfig().get<bool>(
u"premium_purchase_blocked"_q,
true);
}, _lifetime);
#endif // OS_MAC_STORE
@@ -227,6 +227,10 @@ Storage::Domain &Session::domainLocal() const {
return _account->domainLocal();
}
AppConfig &Session::appConfig() const {
return _account->appConfig();
}
void Session::notifyDownloaderTaskFinished() {
downloader().notifyTaskFinished();
}