Get LK info from the js-sdk

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2023-06-27 17:25:35 +02:00
parent 56df302458
commit 3a2cee581e
2 changed files with 14 additions and 3 deletions

View File

@@ -138,6 +138,16 @@ export const ClientProvider: FC<Props> = ({ children }) => {
const { user_id, device_id, access_token, passwordlessUser } =
session;
const livekit = Config.get().livekit;
const foci = livekit
? [
{
url: livekit.server_url,
jwtServiceUrl: livekit.jwt_service_url,
},
]
: undefined;
try {
return {
client: await initClient(
@@ -147,6 +157,7 @@ export const ClientProvider: FC<Props> = ({ children }) => {
userId: user_id,
deviceId: device_id,
fallbackICEServerAllowed: fallbackICEServerAllowed,
foci,
},
true
),
@@ -163,6 +174,7 @@ export const ClientProvider: FC<Props> = ({ children }) => {
userId: user_id,
deviceId: device_id,
fallbackICEServerAllowed: fallbackICEServerAllowed,
foci,
},
false // Don't need the crypto store just to log out
);