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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user