diff --git a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php index 14f7b99c..771ac4a3 100644 --- a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php @@ -470,7 +470,9 @@ trait UpdateHandler } switch ($update['phone_call']['_']) { case 'phoneCallRequested': - if (isset($this->calls[$update['phone_call']['id']])) return; + if (isset($this->calls[$update['phone_call']['id']])) { + return; + } $controller = new \danog\MadelineProto\VoIP(false, $update['phone_call']['admin_id'], ['_' => 'inputPhoneCall', 'id' => $update['phone_call']['id'], 'access_hash' => $update['phone_call']['access_hash']], $this, \danog\MadelineProto\VoIP::CALL_STATE_INCOMING, $update['phone_call']['protocol']); $controller->storage = ['g_a_hash' => $update['phone_call']['g_a_hash']];