From 9511ebab38c6c8c2b4a61a4de11e2c0516ff4672 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 6 Oct 2020 10:44:53 +0200 Subject: [PATCH] Initialize reference database on cleanup --- src/danog/MadelineProto/MTProto.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 5a122acf..ad028e98 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -694,6 +694,7 @@ class MTProto extends AsyncConstruct implements TLCallback public function cleanup(): void { $this->referenceDatabase = new ReferenceDatabase($this); + yield from $this->referenceDatabase->init(); $callbacks = [$this, $this->referenceDatabase]; if (!($this->authorization['user']['bot'] ?? false)) { $callbacks[] = $this->minDatabase;