From 2b9d6319f33c9ab252b060bae139c6a81d0d18df Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 6 Aug 2017 12:24:19 +0200 Subject: [PATCH] Fixes --- src/danog/MadelineProto/VoIP/AuthKeyHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php index ebaf2b59e..d0e9fe0fc 100644 --- a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php +++ b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php @@ -135,7 +135,7 @@ trait AuthKeyHandler $this->calls[$params['id']]->setVisualization($visualization); $this->calls[$params['id']]->configuration['shared_config'] = array_merge($this->method_call('phone.getCallConfig', [], ['datacenter' => $this->datacenter->curdc]), $this->calls[$params['id']]->configuration['shared_config']); - $this->calls[$params['id']]->configuration['endpoints'] = array_merge([$params['connection']], $params['alternative_connections'], $this->calls[$params['id']]->configuration['endpoints']); + $this->calls[$params['id']]->configuration['endpoints'] = array_merge([$res['connection']], $res['alternative_connections'], $this->calls[$params['id']]->configuration['endpoints']); $this->calls[$params['id']]->configuration = array_merge([ 'recv_timeout' => $this->config['call_receive_timeout_ms'] / 1000,