2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +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

@@ -17,7 +17,7 @@ namespace Window {
Controller::Controller(not_null<Main::Account*> account)
: _account(account)
, _widget(this) {
Core::App().activeAccount().sessionValue(
_account->sessionValue(
) | rpl::start_with_next([=](AuthSession *session) {
_sessionController = session
? std::make_unique<SessionController>(session, &_widget)