Remove multi-SFU check which is always true

Compatibility and Matrix 2.0 are the only MatrixRTC modes now.
This commit is contained in:
Robin
2026-09-28 22:03:16 +02:00
parent 12352b94f5
commit 8db2e8ac41
@@ -987,9 +987,6 @@ export function enterRTCSession(
matrix_rtc_session: sessionConfig, matrix_rtc_session: sessionConfig,
} = Config.get(); } = Config.get();
const retryInterval = sessionConfig.network_error_retry_ms; const retryInterval = sessionConfig.network_error_retry_ms;
const multiSFU =
matrixRTCMode === MatrixRTCMode.Compatibility ||
matrixRTCMode === MatrixRTCMode.Matrix_2_0;
// For backwards compatibility with Element Call versions that do not do Matrix 2.0, // For backwards compatibility with Element Call versions that do not do Matrix 2.0,
// we add the livekit alias to the transport. // we add the livekit alias to the transport.
@@ -1016,8 +1013,8 @@ export function enterRTCSession(
rtcSession.joinRTCSession( rtcSession.joinRTCSession(
ownMembershipIdentity, ownMembershipIdentity,
multiSFU ? [] : [backwardCompatibleTransport], [],
multiSFU ? backwardCompatibleTransport : undefined, backwardCompatibleTransport,
{ {
notificationType, notificationType,
callIntent, callIntent,