Respect io.element.jitsi
useFor1To1Calls
in well-known (#112)
* Respect `io.element.jitsi` `useFor1To1Calls` in well-known Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
2a183c76c9
commit
e60d3bd1ee
2 changed files with 15 additions and 4 deletions
|
@ -59,6 +59,7 @@ import { SdkContextClass } from "./contexts/SDKContext";
|
|||
import { showCantStartACallDialog } from "./voice-broadcast/utils/showCantStartACallDialog";
|
||||
import { isNotNull } from "./Typeguards";
|
||||
import { BackgroundAudio } from "./audio/BackgroundAudio";
|
||||
import { Jitsi } from "./widgets/Jitsi.ts";
|
||||
|
||||
export const PROTOCOL_PSTN = "m.protocol.pstn";
|
||||
export const PROTOCOL_PSTN_PREFIXED = "im.vector.protocol.pstn";
|
||||
|
@ -908,12 +909,12 @@ export default class LegacyCallHandler extends EventEmitter {
|
|||
Modal.createDialog(ErrorDialog, {
|
||||
description: _t("voip|cannot_call_yourself_description"),
|
||||
});
|
||||
} else if (members.length === 2) {
|
||||
} else if (members.length === 2 && !Jitsi.getInstance().useFor1To1Calls) {
|
||||
logger.info(`Place ${type} call in ${roomId}`);
|
||||
|
||||
await this.placeMatrixCall(roomId, type, transferee);
|
||||
} else {
|
||||
// > 2
|
||||
// > 2 || useFor1To1Calls
|
||||
await this.placeJitsiCall(roomId, type);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue