From 58a3efacc6213f2eb90220f0a90b1cb807fca620 Mon Sep 17 00:00:00 2001 From: Alexander Pankratov Date: Sat, 3 Oct 2020 01:44:29 +0300 Subject: [PATCH] Set ipc slow mode from settings array --- src/danog/MadelineProto/Settings.php | 1 + src/danog/MadelineProto/Settings/Ipc.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/danog/MadelineProto/Settings.php b/src/danog/MadelineProto/Settings.php index 3a78bf095..ad255471f 100644 --- a/src/danog/MadelineProto/Settings.php +++ b/src/danog/MadelineProto/Settings.php @@ -139,6 +139,7 @@ class Settings extends SettingsAbstract $this->secretChats->mergeArray($settings); $this->serialization->mergeArray($settings); $this->schema->mergeArray($settings); + $this->ipc->mergeArray($settings); switch ($settings['db']['type'] ?? 'memory') { case 'memory': diff --git a/src/danog/MadelineProto/Settings/Ipc.php b/src/danog/MadelineProto/Settings/Ipc.php index 55853955f..8500133f9 100644 --- a/src/danog/MadelineProto/Settings/Ipc.php +++ b/src/danog/MadelineProto/Settings/Ipc.php @@ -15,6 +15,7 @@ class Ipc extends SettingsAbstract public function mergeArray(array $settings): void { + $this->setSlow($settings['ipc']['slow'] ?? $this->getSlow()); } /**