forked from mystiq/hydrogen-web
Merge remote-tracking branch 'origin/bwindels/calls' into bwindels/calls
This commit is contained in:
commit
ea1c3a2b86
2 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue