Merge remote-tracking branch 'origin/bwindels/calls' into bwindels/calls

This commit is contained in:
Bruno Windels 2022-04-14 13:47:23 +02:00
commit ea1c3a2b86
2 changed files with 3 additions and 2 deletions

View File

@ -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,

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);