From 55097e41542ad9833ff6058b0aa73b5eb106a2ed Mon Sep 17 00:00:00 2001 From: Robert Long Date: Wed, 13 Apr 2022 13:08:47 -0700 Subject: [PATCH] Add intent to CallHandler --- src/matrix/calls/CallHandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/calls/CallHandler.ts b/src/matrix/calls/CallHandler.ts index 31829396..77492e62 100644 --- a/src/matrix/calls/CallHandler.ts +++ b/src/matrix/calls/CallHandler.ts @@ -107,11 +107,11 @@ export class CallHandler { }); } - async createCall(roomId: string, localMedia: LocalMedia, name: string): Promise { + async createCall(roomId: string, localMedia: LocalMedia, name: string, intent: CallIntent = CallIntent.Ring): Promise { const logItem = this.options.logger.child({l: "call", incoming: false}); const call = new GroupCall(makeId("conf-"), true, { "m.name": name, - "m.intent": CallIntent.Ring + "m.intent": intent }, roomId, this.groupCallOptions, logItem); this._calls.set(call.id, call);