forked from mystiq/hydrogen-web
Add intent to CallHandler
This commit is contained in:
parent
2d00d10161
commit
55097e4154
1 changed files with 2 additions and 2 deletions
|
@ -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 logItem = this.options.logger.child({l: "call", incoming: false});
|
||||||
const call = new GroupCall(makeId("conf-"), true, {
|
const call = new GroupCall(makeId("conf-"), true, {
|
||||||
"m.name": name,
|
"m.name": name,
|
||||||
"m.intent": CallIntent.Ring
|
"m.intent": intent
|
||||||
}, roomId, this.groupCallOptions, logItem);
|
}, roomId, this.groupCallOptions, logItem);
|
||||||
this._calls.set(call.id, call);
|
this._calls.set(call.id, call);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue