This commit is contained in:
Daniil Gentili 2017-06-09 23:32:42 +02:00
parent 3c808c0d49
commit 15d439428a
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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;