Updates fix
This commit is contained in:
parent
fe1d87af27
commit
cf456dbeb7
@ -387,7 +387,7 @@ class MTProto implements TLCallback
|
||||
}
|
||||
|
||||
if (!$this->settings['updates']['handle_old_updates']) {
|
||||
$this->channels_state = [];
|
||||
$this->channels_state = new CombinedUpdatesState();
|
||||
$this->got_state = false;
|
||||
}
|
||||
yield $this->connect_to_all_dcs_async();
|
||||
|
@ -25,7 +25,7 @@ namespace danog\MadelineProto\MTProtoTools;
|
||||
class CombinedUpdatesState
|
||||
{
|
||||
private $states = [];
|
||||
public function __construct($init)
|
||||
public function __construct($init = [])
|
||||
{
|
||||
if (!is_array($init)) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user