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, diff --git a/src/matrix/calls/CallHandler.ts b/src/matrix/calls/CallHandler.ts index 5208b72e..b49ca3c5 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);