don't allow to join a call using a foci

This commit is contained in:
Bruno Windels 2023-01-27 10:12:22 +01:00
parent 365157449e
commit c8bb5fffb0
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ export class CallTile extends SimpleTile {
} }
get canJoin() { get canJoin() {
return this._call && !this._call.hasJoined; return this._call && !this._call.hasJoined && !this._call.usesFoci;
} }
get canLeave() { get canLeave() {

View File

@ -190,7 +190,7 @@ export class GroupCall extends EventEmitter<{change: never}> {
join(localMedia: LocalMedia, log?: ILogItem): Promise<void> { join(localMedia: LocalMedia, log?: ILogItem): Promise<void> {
return this.options.logger.wrapOrRun(log, "Call.join", async joinLog => { return this.options.logger.wrapOrRun(log, "Call.join", async joinLog => {
if (this._state !== GroupCallState.Created || this.joinedData) { if (this._state !== GroupCallState.Created || this.joinedData || this.usesFoci) {
return; return;
} }
const logItem = this.options.logger.child({ const logItem = this.options.logger.child({