From 666dcd9770fe080e00898b9138664e8996bf5162 Mon Sep 17 00:00:00 2001 From: Jonas Gloning <34194370+jonasgloning@users.noreply.github.com> Date: Wed, 25 May 2022 23:24:36 +0200 Subject: [PATCH] =?UTF-8?q?fix(typings):=20`MediaConnection.answer()`=20do?= =?UTF-8?q?esn=E2=80=99t=20need=20a=20`stream`=20anymore,=20thanks=20@mata?= =?UTF-8?q?llui!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mediaconnection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mediaconnection.ts b/lib/mediaconnection.ts index bd2277750..4ec0323b3 100644 --- a/lib/mediaconnection.ts +++ b/lib/mediaconnection.ts @@ -76,7 +76,7 @@ export class MediaConnection extends BaseConnection { } } - answer(stream: MediaStream, options: AnswerOption = {}): void { + answer(stream?: MediaStream, options: AnswerOption = {}): void { if (this._localStream) { logger.warn( "Local stream already exists on this MediaConnection. Are you answering a call twice?",