Fallback to config LiveKit URL if there is no URL coming from the js-sdk
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
e194d56894
commit
124c6223e4
1 changed files with 4 additions and 1 deletions
|
@ -36,6 +36,7 @@ import { UserChoices } from "../livekit/useLiveKit";
|
|||
import { findDeviceByName } from "../media-utils";
|
||||
import { OpenIDLoader } from "../livekit/OpenIDLoader";
|
||||
import { ActiveCall } from "./InCallView";
|
||||
import { Config } from "../config/Config";
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
|
@ -219,7 +220,9 @@ export function GroupCallView({
|
|||
undefined
|
||||
);
|
||||
|
||||
const livekitServiceURL = groupCall.foci[0]?.livekitServiceUrl;
|
||||
const livekitServiceURL =
|
||||
groupCall.foci[0]?.livekitServiceUrl ??
|
||||
Config.get().livekit.livekit_service_url;
|
||||
if (!livekitServiceURL) {
|
||||
return <ErrorView error={new Error("No livekit_service_url defined")} />;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue