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

Remove some more Auth() calls.

This commit is contained in:
John Preston
2019-07-24 16:00:30 +02:00
parent ff44094ded
commit 137fa0378c
59 changed files with 840 additions and 460 deletions

View File

@@ -130,17 +130,18 @@ public:
void badMtprotoConfigurationError();
// Databases.
Storage::Databases &databases() {
[[nodiscard]] Storage::Databases &databases() {
return *_databases;
}
// Account component.
Main::Account &activeAccount() const {
[[nodiscard]] Main::Account &activeAccount() const {
return *_account;
}
[[nodiscard]] bool exportPreventsQuit();
// Main::Session component.
int unreadBadge() const;
[[nodiscard]] int unreadBadge() const;
bool unreadBadgeMuted() const;
// Media component.