mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Rename AuthSession to Main::Session.
This commit is contained in:
@@ -71,7 +71,7 @@ QString FormatVersionPrecise(int version) {
|
||||
|
||||
} // namespace
|
||||
|
||||
Changelogs::Changelogs(not_null<AuthSession*> session, int oldVersion)
|
||||
Changelogs::Changelogs(not_null<Main::Session*> session, int oldVersion)
|
||||
: _session(session)
|
||||
, _oldVersion(oldVersion) {
|
||||
_session->data().chatsListChanges(
|
||||
@@ -83,7 +83,7 @@ Changelogs::Changelogs(not_null<AuthSession*> session, int oldVersion)
|
||||
}
|
||||
|
||||
std::unique_ptr<Changelogs> Changelogs::Create(
|
||||
not_null<AuthSession*> session) {
|
||||
not_null<Main::Session*> session) {
|
||||
const auto oldVersion = Local::oldMapVersion();
|
||||
return (oldVersion > 0 && oldVersion < AppVersion)
|
||||
? std::make_unique<Changelogs>(session, oldVersion)
|
||||
|
Reference in New Issue
Block a user