1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 07:38:58 +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)) { if ($existingChat && ($existingChat['min'] ?? false) && !($user['min'] ?? false)) {
$this->API->minDatabase->clearPeer($user['id']); $this->API->minDatabase->clearPeer($user['id']);
} }
if ($existingChat && ($existingChat['bot_info_version'] ?? null) !== ($user['bot_info_version'] ?? null)) {
$this->expireFull($user['id']);
}
} }
} finally { } finally {
if (isset($o) && $this->pendingDb[$id] === $o) { if (isset($o) && $this->pendingDb[$id] === $o) {