mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 07:18:57 +01:00
Improvement
This commit is contained in:
parent
428fa07cac
commit
f07e40392d
@ -153,7 +153,11 @@ final class PeerDatabase implements TLCallback
|
||||
|
||||
public function getFull(int $id): ?array
|
||||
{
|
||||
return $this->fullDb[$id];
|
||||
$result = $this->fullDb[$id];
|
||||
if ($result !== null) {
|
||||
$result['id'] = $id;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
public function expireFull(int $id): void
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user