2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Moved AppClass to messenger.cpp:Messenger.

This commit is contained in:
John Preston
2017-02-23 13:59:19 +03:00
parent 63c61637f8
commit c3b3819d9f
40 changed files with 940 additions and 962 deletions

View File

@@ -21,14 +21,14 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "stdafx.h"
#include "auth_session.h"
#include "application.h"
#include "messenger.h"
AuthSession::AuthSession(UserId userId) : _userId(userId) {
t_assert(_userId != 0);
}
AuthSession *AuthSession::Current() {
return AppClass::Instance().authSession();
return Messenger::Instance().authSession();
}
UserData *AuthSession::CurrentUser() {