Refactor plugin management system
- Updated PluginLoader to utilize the new plugin marketplace manager for loading and managing plugins. - Simplified the plugin loading process by removing unnecessary state management and directly integrating with the plugin marketplace. - Enhanced error handling during plugin installation and uninstallation processes. - Removed legacy code related to Electron-specific plugin handling, streamlining the codebase for web compatibility. - Updated Plugins component to fetch marketplace plugins and installed plugins using the new plugin marketplace manager. - Refactored types related to plugins to import from the new plugin manager module, ensuring consistency and reducing redundancy. - Removed unused calling configuration from client settings and adjusted related types accordingly. - Cleaned up room state events by removing references to LiveKit service URLs, aligning with the updated architecture.
This commit is contained in:
@@ -300,26 +300,10 @@ export class CallService {
|
||||
this.config.accessToken
|
||||
);
|
||||
|
||||
// Step 2: Determine LiveKit service URL (check room-level config first)
|
||||
let livekitServiceUrl = this.config.livekitServiceUrl;
|
||||
|
||||
// Check if room has a custom LiveKit config
|
||||
const room = this.matrixClient.getRoom(roomId);
|
||||
if (room) {
|
||||
const livekitConfigEvent = room.currentState.getStateEvents('im.paarrot.room.livekit_config', '');
|
||||
if (livekitConfigEvent) {
|
||||
const roomLivekitUrl = livekitConfigEvent.getContent()?.service_url;
|
||||
if (roomLivekitUrl) {
|
||||
console.log('Using room-level LiveKit URL:', roomLivekitUrl);
|
||||
livekitServiceUrl = roomLivekitUrl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Step 3: Exchange OpenID token for LiveKit JWT
|
||||
// Step 2: Exchange OpenID token for LiveKit JWT
|
||||
console.log('Requesting LiveKit JWT for Matrix room:', roomId);
|
||||
this.livekitJwt = await fetchLiveKitJWT(
|
||||
livekitServiceUrl,
|
||||
this.config.livekitServiceUrl,
|
||||
roomId,
|
||||
this.config.userId,
|
||||
this.config.deviceId,
|
||||
|
||||
Reference in New Issue
Block a user