From 2d00d10161b52e83e56b9a331c0e31adede3d1ec Mon Sep 17 00:00:00 2001 From: Robert Long Date: Wed, 13 Apr 2022 13:08:33 -0700 Subject: [PATCH 1/2] Export LocalMedia --- src/lib.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.ts b/src/lib.ts index e2da5e16..a49eacbc 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -71,6 +71,7 @@ export {AvatarView} from "./platform/web/ui/AvatarView.js"; export {RoomType} from "./matrix/room/common"; export {EventEmitter} from "./utils/EventEmitter"; export {Disposables} from "./utils/Disposables"; +export {LocalMedia} from "./matrix/calls/LocalMedia"; // these should eventually be moved to another library export { ObservableArray, From 55097e41542ad9833ff6058b0aa73b5eb106a2ed Mon Sep 17 00:00:00 2001 From: Robert Long Date: Wed, 13 Apr 2022 13:08:47 -0700 Subject: [PATCH 2/2] 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);