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

Revert broken logic

This commit is contained in:
Daniil Gentili 2022-05-13 14:59:38 +02:00
parent fc4880c192
commit 0ad5c2eaf1

View File

@ -291,9 +291,6 @@ trait UpdateHandler
yield from $this->getConfig();
}
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'];
}
$id = $this->getId($update);
$chat = yield $this->full_chats[$id];
$chat['last_update'] = 0;