фикс входа по номеру

This commit is contained in:
needle10
2025-11-27 15:13:43 +03:00
parent 1007a053fd
commit 6eefba6e66

View File

@@ -371,6 +371,14 @@ extension ApiServiceConnection on ApiService {
"Токен найден, автоматически запускаем авторизацию (opcode 19)...",
);
unawaited(_sendAuthRequestAfterHandshake());
} else if (authToken == null) {
print(
"Токен не найден, завершаем ожидание для неавторизованной сессии",
);
_isSessionReady = true;
if (_onlineCompleter != null && !_onlineCompleter!.isCompleted) {
_onlineCompleter!.complete();
}
}
}