Commit 5f440fc2 authored by Enrico Schwendig's avatar Enrico Schwendig
Browse files

force to allow calls without video and audio in embedded mode

parent e8c89e99
......@@ -236,7 +236,7 @@ export class GroupCall extends TypedEventEmitter<
public readonly userMediaFeeds: CallFeed[] = [];
public readonly screenshareFeeds: CallFeed[] = [];
public groupCallId: string;
public readonly allowCallWithoutVideoAndAudio: boolean;
public allowCallWithoutVideoAndAudio: boolean;
private readonly calls = new Map<string, Map<string, MatrixCall>>(); // user_id -> device_id -> MatrixCall
private callHandlers = new Map<string, Map<string, ICallHandlers>>(); // user_id -> device_id -> ICallHandlers
......@@ -522,6 +522,7 @@ export class GroupCall extends TypedEventEmitter<
}
public async enter(): Promise<void> {
this.allowCallWithoutVideoAndAudio = true;
if (this.state === GroupCallState.LocalCallFeedUninitialized) {
await this.initLocalCallFeed();
} else if (this.state !== GroupCallState.LocalCallFeedInitialized) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment