Trying to fix bugs in update handling
This commit is contained in:
parent
abeb0b9c5b
commit
f7f80241f2
@ -343,10 +343,6 @@ trait UpdateHandler
|
|||||||
$cur_state['pts'] = $update['pts'];
|
$cur_state['pts'] = $update['pts'];
|
||||||
$this->should_serialize = true;
|
$this->should_serialize = true;
|
||||||
$pop_pts = true;
|
$pop_pts = true;
|
||||||
} elseif (isset($update['pts_count'])) {
|
|
||||||
\danog\MadelineProto\Logger::log(['Duplicate update. current pts: '.$cur_state['pts'].' + pts count: '.(isset($update['pts_count']) ? $update['pts_count'] : 0).' = new pts: '.$new_pts.'. update pts: '.$update['pts'].' <= current pts '.$cur_state['pts'].', channel id: '.$channel_id], \danog\MadelineProto\Logger::ERROR);
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
if ($channel_id !== false && isset($options['date']) && $this->get_update_state()['date'] < $options['date']) {
|
if ($channel_id !== false && isset($options['date']) && $this->get_update_state()['date'] < $options['date']) {
|
||||||
$this->get_update_state()['date'] = $options['date'];
|
$this->get_update_state()['date'] = $options['date'];
|
||||||
|
Loading…
Reference in New Issue
Block a user