feat: enhance LiveKit service URL handling and add clipboard support for Electron

This commit is contained in:
2026-02-22 03:41:07 +11:00
parent f5ba778e46
commit 42cc081d49
3 changed files with 35 additions and 10 deletions

View File

@@ -105,12 +105,14 @@ export function useCallService(options?: UseCallServiceOptions): CallContextValu
console.log('Call service init - Using configured LiveKit URL:', livekitServiceUrl);
}
// If still no URL, log warning but allow service to initialize
// Individual rooms may have their own LiveKit configs
if (!livekitServiceUrl) {
// eslint-disable-next-line no-console
console.log('Call service init - No LiveKit service found, calls not supported');
setCallSupported(false);
setCallSupportLoading(false);
return;
console.log('Call service init - No global LiveKit URL found');
console.log('Call service init - Will check for room-level configs when joining calls');
// Use a placeholder URL - room-level config will override this
livekitServiceUrl = 'https://placeholder.invalid/livekit';
}
service = new CallService(