2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Rename AuthSession to Main::Session.

This commit is contained in:
John Preston
2019-07-24 13:45:24 +02:00
parent 06982fdf04
commit ff44094ded
201 changed files with 543 additions and 477 deletions

View File

@@ -26,7 +26,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "boxes/calendar_box.h"
#include "mainwidget.h"
#include "mainwindow.h"
#include "auth_session.h"
#include "main/main_session.h"
#include "apiwrap.h"
#include "support/support_helper.h"
#include "styles/style_window.h"
@@ -52,11 +52,11 @@ void DateClickHandler::onClick(ClickContext context) const {
App::wnd()->sessionController()->showJumpToDate(_chat, _date);
}
SessionNavigation::SessionNavigation(not_null<AuthSession*> session)
SessionNavigation::SessionNavigation(not_null<Main::Session*> session)
: _session(session) {
}
AuthSession &SessionNavigation::session() const {
Main::Session &SessionNavigation::session() const {
return *_session;
}
@@ -98,7 +98,7 @@ void SessionNavigation::showSettings(const SectionShow &params) {
}
SessionController::SessionController(
not_null<AuthSession*> session,
not_null<Main::Session*> session,
not_null<MainWindow*> window)
: SessionNavigation(session)
, _window(window) {