cleanup an rename compatibility mode
This commit is contained in:
@@ -275,8 +275,8 @@ export const DeveloperSettingsTab: FC<Props> = ({
|
|||||||
name={matrixRTCModeRadioGroup}
|
name={matrixRTCModeRadioGroup}
|
||||||
control={
|
control={
|
||||||
<RadioControl
|
<RadioControl
|
||||||
checked={matrixRTCMode === MatrixRTCMode.Compatibil}
|
checked={matrixRTCMode === MatrixRTCMode.Compatibility}
|
||||||
value={MatrixRTCMode.Compatibil}
|
value={MatrixRTCMode.Compatibility}
|
||||||
onChange={onMatrixRTCModeChange}
|
onChange={onMatrixRTCModeChange}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ export const alwaysShowIphoneEarpiece = new Setting<boolean>(
|
|||||||
|
|
||||||
export enum MatrixRTCMode {
|
export enum MatrixRTCMode {
|
||||||
Legacy = "legacy",
|
Legacy = "legacy",
|
||||||
Compatibil = "compatibil",
|
Compatibility = "compatibility",
|
||||||
/** This implies using
|
/** This implies using
|
||||||
* - sticky events
|
* - sticky events
|
||||||
* - hashed RTC backend identity
|
* - hashed RTC backend identity
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ const mockLegacyRingEvent = {} as { event_id: string } & ICallNotifyContent;
|
|||||||
|
|
||||||
describe.each([
|
describe.each([
|
||||||
[MatrixRTCMode.Legacy],
|
[MatrixRTCMode.Legacy],
|
||||||
[MatrixRTCMode.Compatibil],
|
[MatrixRTCMode.Compatibility],
|
||||||
[MatrixRTCMode.Matrix_2_0],
|
[MatrixRTCMode.Matrix_2_0],
|
||||||
])("CallViewModel (%s mode)", (mode) => {
|
])("CallViewModel (%s mode)", (mode) => {
|
||||||
const withCallViewModel = withCallViewModelInMode(mode);
|
const withCallViewModel = withCallViewModelInMode(mode);
|
||||||
|
|||||||
@@ -429,7 +429,11 @@ export function createCallViewModel$(
|
|||||||
};
|
};
|
||||||
|
|
||||||
const useOldJwtEndpoint$ = scope.behavior(
|
const useOldJwtEndpoint$ = scope.behavior(
|
||||||
matrixRTCMode$.pipe(map((v) => v !== MatrixRTCMode.Matrix_2_0)),
|
matrixRTCMode$.pipe(
|
||||||
|
map(
|
||||||
|
(v) => v === MatrixRTCMode.Legacy || v === MatrixRTCMode.Compatibility,
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
const localTransport$ = createLocalTransport$({
|
const localTransport$ = createLocalTransport$({
|
||||||
|
|||||||
@@ -711,7 +711,9 @@ export function enterRTCSession(
|
|||||||
const useDeviceSessionMemberEvents =
|
const useDeviceSessionMemberEvents =
|
||||||
features?.feature_use_device_session_member_events;
|
features?.feature_use_device_session_member_events;
|
||||||
const { sendNotificationType: notificationType, callIntent } = getUrlParams();
|
const { sendNotificationType: notificationType, callIntent } = getUrlParams();
|
||||||
const multiSFU = matrixRTCMode !== MatrixRTCMode.Legacy;
|
const multiSFU =
|
||||||
|
matrixRTCMode === MatrixRTCMode.Compatibility ||
|
||||||
|
matrixRTCMode === MatrixRTCMode.Matrix_2_0;
|
||||||
// Multi-sfu does not need a preferred foci list. just the focus that is actually used.
|
// Multi-sfu does not need a preferred foci list. just the focus that is actually used.
|
||||||
// TODO where/how do we track errors originating from the ongoing rtcSession?
|
// TODO where/how do we track errors originating from the ongoing rtcSession?
|
||||||
rtcSession.joinRTCSession(
|
rtcSession.joinRTCSession(
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ vi.mock("../widget", () => ({
|
|||||||
|
|
||||||
it.each([
|
it.each([
|
||||||
[MatrixRTCMode.Legacy],
|
[MatrixRTCMode.Legacy],
|
||||||
[MatrixRTCMode.Compatibil],
|
[MatrixRTCMode.Compatibility],
|
||||||
[MatrixRTCMode.Matrix_2_0],
|
[MatrixRTCMode.Matrix_2_0],
|
||||||
])(
|
])(
|
||||||
"expect leave when ElementWidgetActions.HangupCall is called (%s mode)",
|
"expect leave when ElementWidgetActions.HangupCall is called (%s mode)",
|
||||||
|
|||||||
Reference in New Issue
Block a user