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']) {
|
if (!$this->settings['updates']['handle_old_updates']) {
|
||||||
$this->channels_state = [];
|
$this->channels_state = new CombinedUpdatesState();
|
||||||
$this->got_state = false;
|
$this->got_state = false;
|
||||||
}
|
}
|
||||||
yield $this->connect_to_all_dcs_async();
|
yield $this->connect_to_all_dcs_async();
|
||||||
|
@ -25,7 +25,7 @@ namespace danog\MadelineProto\MTProtoTools;
|
|||||||
class CombinedUpdatesState
|
class CombinedUpdatesState
|
||||||
{
|
{
|
||||||
private $states = [];
|
private $states = [];
|
||||||
public function __construct($init)
|
public function __construct($init = [])
|
||||||
{
|
{
|
||||||
if (!is_array($init)) {
|
if (!is_array($init)) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user