fixes
This commit is contained in:
parent
3c808c0d49
commit
15d439428a
@ -316,6 +316,7 @@ class MTProto extends \Volatile
|
||||
$this->datacenter->__construct($this->settings['connection'], $this->settings['connection_settings']);
|
||||
if ($this->authorized === self::LOGGED_IN) {
|
||||
$this->get_self();
|
||||
$this->get_cdn_config($this->datacenter->curdc);
|
||||
}
|
||||
if ($this->authorized === self::LOGGED_IN && !$this->authorization['user']['bot']) {
|
||||
$this->get_dialogs();
|
||||
@ -590,7 +591,6 @@ class MTProto extends \Volatile
|
||||
if ($old !== $this->datacenter->get_dcs()) {
|
||||
$this->connect_to_all_dcs();
|
||||
}
|
||||
$this->get_cdn_config($this->datacenter->curdc);
|
||||
}
|
||||
|
||||
private $initing_authorization = false;
|
||||
|
@ -282,6 +282,7 @@ trait UpdateHandler
|
||||
$last = $this->updates_state['sync_loading'];
|
||||
$this->updates_state['sync_loading'] = true;
|
||||
$data = $this->method_call('updates.getState', [], ['datacenter' => $this->datacenter->curdc]);
|
||||
$this->get_cdn_config($this->datacenter->curdc);
|
||||
$this->updates_state['sync_loading'] = $last;
|
||||
|
||||
return $data;
|
||||
|
Loading…
Reference in New Issue
Block a user