1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 07:38:58 +01:00

Improvement

This commit is contained in:
Daniil Gentili 2024-04-21 14:45:27 +02:00
parent 428fa07cac
commit f07e40392d

View File

@ -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
{