Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Allow 2ppl bigbluebutton calls
Browse files Browse the repository at this point in the history
  • Loading branch information
toger5 committed Jul 3, 2024
1 parent 2894e8a commit 2a298fc
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/LegacyCallHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -991,10 +991,6 @@ export default class LegacyCallHandler extends EventEmitter {
Modal.createDialog(ErrorDialog, {
description: _t("voip|cannot_call_yourself_description"),
});
} else if (members.length === 2) {
logger.info(`Place ${type} call in ${roomId}`);

await this.placeMatrixCall(roomId, type, transferee);
} else {
// > 2
switch (platformType) {
Expand All @@ -1004,6 +1000,15 @@ export default class LegacyCallHandler extends EventEmitter {
case PlatformCallType.BigBlueButtonCall:
await this.placeBigBlueButtonCall(roomId, type);
break;
case PlatformCallType.LegacyCall:
if (members.length === 2) {
logger.info(`Place ${type} call in ${roomId}`);

await this.placeMatrixCall(roomId, type, transferee);
} else {
logger.warn("tried to do a legacy call with more then two room participants");
}
break;
}
}
}
Expand Down

0 comments on commit 2a298fc

Please sign in to comment.