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

Use Controller::account in MainWindow.

This commit is contained in:
John Preston
2019-06-06 14:59:00 +03:00
parent 1e861f79f0
commit 0868a9f7b9
14 changed files with 84 additions and 54 deletions

View File

@@ -23,6 +23,10 @@ class UserData;
class ChatData;
class ChannelData;
namespace Main {
class Account;
} // namespace Main
namespace Data {
class Session;
@@ -111,6 +115,7 @@ public:
[[nodiscard]] Data::Session &owner() const;
[[nodiscard]] AuthSession &session() const;
[[nodiscard]] Main::Account &account() const;
[[nodiscard]] bool isUser() const {
return peerIsUser(id);