Add intent to CallHandler

This commit is contained in:
Robert Long 2022-04-13 13:08:47 -07:00
parent 2d00d10161
commit 55097e4154

View file

@ -107,11 +107,11 @@ export class CallHandler {
});
}
async createCall(roomId: string, localMedia: LocalMedia, name: string): Promise<GroupCall> {
async createCall(roomId: string, localMedia: LocalMedia, name: string, intent: CallIntent = CallIntent.Ring): Promise<GroupCall> {
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);