2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 15:05:56 +00:00

Pass SessionNavigation to some boxes.

This commit is contained in:
John Preston
2019-07-25 20:55:11 +02:00
parent 137fa0378c
commit bacaf805b5
54 changed files with 601 additions and 233 deletions

View File

@@ -75,8 +75,9 @@ private:
};
SessionsBox::SessionsBox(QWidget*)
: _shortPollTimer([=] { shortPollSessions(); }) {
SessionsBox::SessionsBox(QWidget*, not_null<Main::Session*> session)
: _session(session)
, _shortPollTimer([=] { shortPollSessions(); }) {
}
void SessionsBox::prepare() {
@@ -99,7 +100,7 @@ void SessionsBox::prepare() {
terminateAll();
}, lifetime());
Auth().data().newAuthorizationChecks(
_session->data().newAuthorizationChecks(
) | rpl::start_with_next([=] {
shortPollSessions();
}, lifetime());