1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 20:35:23 +01:00

Peer database bugfix

This commit is contained in:
Daniil Gentili 2024-10-19 15:02:38 +00:00
parent f1618769d2
commit 52f6e48abf
3 changed files with 3 additions and 3 deletions

2
docs

@ -1 +1 @@
Subproject commit f42967628f037daf1d60faae8049c58da1bd90a3
Subproject commit a08656066e6ecbe4dc2b3cae13ea457253574974

@ -1 +1 @@
Subproject commit f0d60e35a9566ade2a29cd3e9e7f67f323e9ad4d
Subproject commit d870841861326100fd22281c8a659f5f023d6aeb

View File

@ -265,7 +265,7 @@ final class PeerDatabase implements TLCallback
if (!$this->API->settings->getDb()->getEnableUsernameDb()) {
return;
}
$new = self::getUsernames($new);
$new = $new ? self::getUsernames($new) : [];
$old = $old ? self::getUsernames($old) : [];
foreach ($old as $key => $username) {
if (!isset($this->usernames[$username])) {