mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Remove Auth() global access point.
This commit is contained in:
@@ -126,12 +126,13 @@ void Account::createSession(
|
||||
Expects(_sessionValue.current() == nullptr);
|
||||
|
||||
_session = std::make_unique<Session>(this, user, std::move(settings));
|
||||
_sessionValue = _session.get();
|
||||
|
||||
if (!serialized.isEmpty()) {
|
||||
// For now it depends on Auth() which depends on _sessionValue.
|
||||
local().readSelf(serialized, streamVersion);
|
||||
}
|
||||
|
||||
_sessionValue = _session.get();
|
||||
}
|
||||
|
||||
void Account::destroySession() {
|
||||
|
Reference in New Issue
Block a user