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:
parent
42ab884a99
commit
d129a2ef19
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user