1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 22:51:11 +01:00

Small fix

This commit is contained in:
Daniil Gentili 2022-05-11 22:49:30 +02:00
parent 46b593f01b
commit 43dd0229e8
2 changed files with 2 additions and 2 deletions

2
docs

@ -1 +1 @@
Subproject commit 66534a555ecf7967127876d21cb84b2e300db6d9
Subproject commit 81ed0ba2f958f85cfaea90836ea76991e9345833

View File

@ -292,7 +292,7 @@ trait UpdateHandler
}
if (\in_array($update['_'], ['updateUserName', 'updateUserPhone', 'updateUserBlocked', 'updateUserPhoto', 'updateContactRegistered', 'updateContactLink']) && $this->getSettings()->getDb()->getEnableFullPeerDb()) {
if ($update['_'] === 'updateUserName') {
$update = yield from $this->resolveUsername($update['username'])['peer'];
$update = (yield from $this->resolveUsername($update['username']))['peer'];
}
$id = $this->getId($update);
$chat = yield $this->full_chats[$id];