1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 04:35:12 +01:00
This commit is contained in:
Daniil Gentili 2023-08-15 12:41:45 +02:00
parent 5ef8d25faa
commit 2bc9e3d750
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ trait AuthKeyHandler
*/
public function getCallByPeer(int $userId): ?VoIP
{
return $this->callsByPeer[$userId] ?? null;
return ($this->callsByPeer[$userId] ?? null)?->public;
}
/**
@ -143,7 +143,7 @@ trait AuthKeyHandler
*/
public function getCall(int $id): ?VoIP
{
return $this->calls[$id] ?? null;
return ($this->calls[$id] ?? null)?->public;
}
/**

View File

@ -680,7 +680,7 @@ final class VoIPController
$this->playingHold = false;
$this->skip();
}
Assert::true($this->playLoop->resume());
$this->playLoop->resume();
return $this;
}