This commit is contained in:
Daniil Gentili 2019-05-31 00:33:32 +02:00
parent 65c0639229
commit a7b75a1a0a
2 changed files with 4 additions and 4 deletions

View File

@ -110,7 +110,7 @@ class FeedLoop extends ResumableSignalLoop
unset($updates[$key]);
if ($update['_'] === 'updateChannelTooLong') {
$this->API->logger->logger('Got channel too long update, getting difference...', \danog\MadelineProto\Logger::VERBOSE);
$this->API->updaters[$this->channelId]->resume();
yield $this->updater->resume();
continue;
}

View File

@ -138,7 +138,7 @@ class UpdatesState
*/
public function pts($set = 0)
{
if ($set !== 0) {
if ($set !== 0 && $set > $this->pts) {
$this->pts = $set;
}
return $this->pts;
@ -151,7 +151,7 @@ class UpdatesState
*/
public function qts($set = 0)
{
if ($set !== 0) {
if ($set !== 0 && $set > $this->qts) {
$this->qts = $set;
}
return $this->qts;
@ -164,7 +164,7 @@ class UpdatesState
*/
public function seq($set = 0)
{
if ($set !== 0) {
if ($set !== 0 && $set > $this->seq) {
$this->seq = $set;
}
return $this->seq;