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