1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 20:35:23 +01:00
This commit is contained in:
Daniil Gentili 2024-09-26 13:40:52 +02:00
parent 3c991dc679
commit d8fe777b6f

View File

@ -315,7 +315,7 @@ final class PeerDatabase implements TLCallback
}
$result = $this->usernames[$username];
$id = $result === null ? $result : (int) $result;
if (!$this->isset($id)) {
if ($id !== null && !$this->isset($id)) {
$this->API->logger("No peer entry for cached username @$username => {$id}, dropping entry!");
unset($this->usernames[$username]);
return null;