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:
parent
f1618769d2
commit
52f6e48abf
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit f42967628f037daf1d60faae8049c58da1bd90a3
|
||||
Subproject commit a08656066e6ecbe4dc2b3cae13ea457253574974
|
2
schemas
2
schemas
@ -1 +1 @@
|
||||
Subproject commit f0d60e35a9566ade2a29cd3e9e7f67f323e9ad4d
|
||||
Subproject commit d870841861326100fd22281c8a659f5f023d6aeb
|
@ -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])) {
|
||||
|
Loading…
Reference in New Issue
Block a user