From 43dd0229e8c73a85e8c20a5497c46bc14419de79 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 11 May 2022 22:49:30 +0200 Subject: [PATCH] Small fix --- docs | 2 +- src/danog/MadelineProto/MTProtoTools/UpdateHandler.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs b/docs index 66534a555..81ed0ba2f 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 66534a555ecf7967127876d21cb84b2e300db6d9 +Subproject commit 81ed0ba2f958f85cfaea90836ea76991e9345833 diff --git a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php index b2efced98..2250483a6 100644 --- a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php @@ -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];