mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 02:34:39 +01:00
Fixes
This commit is contained in:
parent
5ef8d25faa
commit
2bc9e3d750
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -680,7 +680,7 @@ final class VoIPController
|
||||
$this->playingHold = false;
|
||||
$this->skip();
|
||||
}
|
||||
Assert::true($this->playLoop->resume());
|
||||
$this->playLoop->resume();
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user