2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +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

@@ -8,7 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_session.h"
#include "observer_peer.h"
#include "auth_session.h"
#include "main/main_session.h"
#include "apiwrap.h"
#include "mainwidget.h"
#include "core/application.h"
@@ -157,7 +157,7 @@ MTPPhotoSize FindDocumentThumbnail(const MTPDdocument &data) {
}
rpl::producer<int> PinnedDialogsCountMaxValue(
not_null<AuthSession*> session) {
not_null<Main::Session*> session) {
return rpl::single(
rpl::empty_value()
) | rpl::then(
@@ -189,7 +189,7 @@ bool PruneDestroyedAndSet(
} // namespace
Session::Session(not_null<AuthSession*> session)
Session::Session(not_null<Main::Session*> session)
: _session(session)
, _cache(Core::App().databases().get(
Local::cachePath(),