Skip to content

Commit

Permalink
AddSession bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Pankratov committed Jan 22, 2020
1 parent 2d1d3c1 commit 01e3da9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/MadelineProtoExtensions/SystemApiExtensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(Client $client)

public function addSession(string $session)
{
yield $this->client->addSession($session);
$this->client->addSession($session);
return $this->getSessionList();
}

Expand All @@ -34,7 +34,6 @@ public function getSessionList(): array
$sessions = [];
foreach ($this->client->instances as $session => $instance) {
/** @var MadelineProto\API $instance */
$status = '';
switch ($instance->API->authorized) {
case $instance->API::NOT_LOGGED_IN;
$status = 'NOT_LOGGED_IN';
Expand Down

0 comments on commit 01e3da9

Please sign in to comment.