From 68cf938ea0443a387c61ee8dcee2c4291d7565a9 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 20 Jan 2023 15:44:12 +0100 Subject: [PATCH] Fix small bug --- src/danog/MadelineProto/MTProto.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index ac50b8bd1..768d9c713 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -1002,12 +1002,10 @@ final class MTProto implements TLCallback, LoggerGetter */ private function cleanupProperties(): void { - if (!isset($this->datacenter)) { - $this->datacenter ??= new DataCenter($this, $this->dcList, $this->settings->getConnection()); - } - if (!isset($this->snitch)) { - $this->snitch = new Snitch; - } + $this->channels_state ??= new CombinedUpdatesState; + $this->datacenter ??= new DataCenter($this, $this->dcList, $this->settings->getConnection()); + $this->snitch ??= new Snitch; + $db = []; if (!isset($this->referenceDatabase)) { $this->referenceDatabase = new ReferenceDatabase($this);