Change the livekit alias to just be the room id for backwards

compatibility.
This commit is contained in:
Timo K
2026-01-13 12:37:46 +01:00
parent 4b7dc8a290
commit 72ca3821ab
2 changed files with 19 additions and 4 deletions

View File

@@ -143,9 +143,13 @@ export function areLivekitTransportsEqual<T extends LivekitTransport>(
t1: T | null,
t2: T | null,
): boolean {
if (t1 && t2) return t1.livekit_service_url === t2.livekit_service_url;
// In case we have different lk rooms in the same SFU (depends on the livekit authorization service)
// It is only needed in case the livekit authorization service is not behaving as expected (or custom implementation)
if (t1 && t2)
return (
t1.livekit_service_url === t2.livekit_service_url &&
// In case we have different lk rooms in the same SFU (depends on the livekit authorization service)
// It is only needed in case the livekit authorization service is not behaving as expected (or custom implementation)
t1.livekit_alias === t2.livekit_alias
);
if (!t1 && !t2) return true;
return false;
}