mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
don't allow to join a call using a foci
This commit is contained in:
parent
365157449e
commit
c8bb5fffb0
@ -94,7 +94,7 @@ export class CallTile extends SimpleTile {
|
||||
}
|
||||
|
||||
get canJoin() {
|
||||
return this._call && !this._call.hasJoined;
|
||||
return this._call && !this._call.hasJoined && !this._call.usesFoci;
|
||||
}
|
||||
|
||||
get canLeave() {
|
||||
|
@ -190,7 +190,7 @@ export class GroupCall extends EventEmitter<{change: never}> {
|
||||
|
||||
join(localMedia: LocalMedia, log?: ILogItem): Promise<void> {
|
||||
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;
|
||||
}
|
||||
const logItem = this.options.logger.child({
|
||||
|
Loading…
Reference in New Issue
Block a user