1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 07:34:41 +01:00
This commit is contained in:
Daniil Gentili 2021-04-25 23:53:38 +02:00
parent 7e0a47d8bb
commit 420e056ead

View File

@ -1190,6 +1190,9 @@ class MTProto extends AsyncConstruct implements TLCallback
if ($this->authorized === true) {
$this->authorized = self::LOGGED_IN;
}
if (!isset($this->snitch)) {
$this->snitch = new Snitch;
}
// Convert old array settings to new settings object
if (\is_array($this->settings)) {
if (($this->settings['updates']['callback'] ?? '') === 'getUpdatesUpdateHandler') {