Backwards compatibility

This commit is contained in:
Daniil Gentili 2019-09-02 15:53:10 +00:00
parent f63065f1f3
commit 737048c1ae
2 changed files with 4 additions and 1 deletions

2
docs

@ -1 +1 @@
Subproject commit c60f59ffe2ee74d6fb50cd96651e4ae234dbb6ea
Subproject commit 8f6784adf5bca1dbab98ba1ec69ab52050633ca1

View File

@ -691,6 +691,9 @@ class MTProto extends AsyncConstruct implements TLCallback
}
}
foreach ($settings['connection_settings'] as $key => &$connection) {
if (\in_array($key, ['default_dc', 'media_socket_count', 'robin_period'])) {
continue;
}
if (!\is_array($connection)) {
unset($settings['connection_settings'][$key]);
continue;