1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 04:59:00 +01:00

Refresh on bot_info_version change

This commit is contained in:
Daniil Gentili 2024-06-29 11:19:55 +02:00
parent 42ab884a99
commit d129a2ef19

View File

@ -432,6 +432,9 @@ final class PeerDatabase implements TLCallback
if ($existingChat && ($existingChat['min'] ?? false) && !($user['min'] ?? false)) {
$this->API->minDatabase->clearPeer($user['id']);
}
if ($existingChat && ($existingChat['bot_info_version'] ?? null) !== ($user['bot_info_version'] ?? null)) {
$this->expireFull($user['id']);
}
}
} finally {
if (isset($o) && $this->pendingDb[$id] === $o) {