mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-23 05:07:03 +00:00
fix tests and remove duplicated mocks.
This commit is contained in:
@@ -144,12 +144,14 @@ export function createConnectionManager$({
|
||||
localTransport,
|
||||
forceOldJwtEndpointForLocalTransport,
|
||||
]) => {
|
||||
// nmodify only the local transport with forceOldJwtEndpointForLocalTransport
|
||||
// modify only the local transport with forceOldJwtEndpointForLocalTransport
|
||||
const index = transports.value.findIndex((t) =>
|
||||
areLivekitTransportsEqual(localTransport, t),
|
||||
);
|
||||
transports.value[index].forceOldJwtEndpoint =
|
||||
forceOldJwtEndpointForLocalTransport;
|
||||
if (index !== -1) {
|
||||
transports.value[index].forceOldJwtEndpoint =
|
||||
forceOldJwtEndpointForLocalTransport;
|
||||
}
|
||||
logger.trace(
|
||||
`Managing transports: ${transports.value.map((t) => t.livekit_service_url).join(", ")}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user