diff --git a/src/livekit/openIDSFU.ts b/src/livekit/openIDSFU.ts index 9cf4e5a9..2f047ca1 100644 --- a/src/livekit/openIDSFU.ts +++ b/src/livekit/openIDSFU.ts @@ -209,9 +209,7 @@ async function getLiveKitJWT( }; } - const makeRequest = async ( - delayParts: IDelayParams, - ): Promise => { + const makeRequest = async (delayParts: IDelayParams): Promise => { return await fetch(livekitServiceURL + "/sfu/get", { method: "POST", headers: { @@ -219,7 +217,7 @@ async function getLiveKitJWT( }, body: JSON.stringify({ // The legacy jwt endpoint uses only the matrix room id to calculate the livekit room alias. - // In turn, the livekit room alias is provided as part f the JWT payload. + // In turn, the livekit room alias is provided as part of the JWT payload. room: matrixRoomId, openid_token: openIDToken, device_id: deviceId, diff --git a/src/state/CallViewModel/localMember/LocalMember.ts b/src/state/CallViewModel/localMember/LocalMember.ts index e75c5546..2a6c6776 100644 --- a/src/state/CallViewModel/localMember/LocalMember.ts +++ b/src/state/CallViewModel/localMember/LocalMember.ts @@ -783,12 +783,14 @@ export function enterRTCSession( // - A delayed leave event is emitted (configured with a `leaveDelay` ms period). // Note: Use leaveDelay >> gracePeriod for delegated leave events. const gracePeriod = Config.get().sync_disconnect_grace_period_ms ?? 10000; - const leaveDelay = matrixRtcSessionConfig?.delayed_leave_event_delay_ms ?? 10000; + const leaveDelay = + matrixRtcSessionConfig?.delayed_leave_event_delay_ms ?? 10000; const retryInterval = matrixRtcSessionConfig?.network_error_retry_ms ?? 1000; // Math.min is used to account for the respective worst case: /sync not available or leave event emitted. const maxWaitTime = Math.min(gracePeriod, leaveDelay); - const maximumNetworkErrorRetryCount = Math.ceil(maxWaitTime / retryInterval) + 1; + const maximumNetworkErrorRetryCount = + Math.ceil(maxWaitTime / retryInterval) + 1; // 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?