Fix: getSessionList statuses

This commit is contained in:
Alexander Pankratov 2023-07-07 20:29:46 +02:00
parent 9ef088f39a
commit 3c35d24129

View File

@ -57,8 +57,7 @@ class SystemApiExtensions
{
$sessions = [];
foreach ($this->client->instances as $session => $instance) {
/** @var API $instance */
$authorized = $instance->API->authorized ?? null;
$authorized = $instance->getAuthorization();
switch ($authorized) {
case API::NOT_LOGGED_IN;
$status = 'NOT_LOGGED_IN';