Update settings when upgrading

This commit is contained in:
Daniil Gentili 2020-03-01 17:36:55 +01:00
parent 55d4de2df9
commit c0af617862
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 2 additions and 1 deletions

2
docs

@ -1 +1 @@
Subproject commit 1523eda477bfd325bd78590d17e36359365f2530
Subproject commit aba1bf55122500b13163d9589404d4cb7ca49c1b

View File

@ -827,6 +827,7 @@ class MTProto extends AsyncConstruct implements TLCallback
$this->resetMTProtoSession(true, true);
$this->config = ['expires' => -1];
$this->dh_config = ['version' => 0];
$this->settings = $settings;
yield from $this->__construct_async($settings);
foreach ($this->secret_chats as $chat => $data) {
try {