diff --git a/src/app/features/room/SmallWidget.ts b/src/app/features/room/SmallWidget.ts index 73fef394..0464a9c4 100644 --- a/src/app/features/room/SmallWidget.ts +++ b/src/app/features/room/SmallWidget.ts @@ -214,17 +214,6 @@ export class SmallWidget extends EventEmitter { this.feedEvent(ev); }; - /* - private onStateUpdate = (ev: MatrixEvent): void => { - if (this.messaging === null) return; - const raw = ev.getEffectiveEvent(); - logger.error(raw); - this.messaging.feedEvent(raw as IRoomEvent).catch((e) => { - logger.error('Error sending state update to widget: ', e); - }); - }; - */ - private onToDeviceEvent = async (ev: MatrixEvent): Promise => { await this.client.decryptEventIfNeeded(ev); if (ev.isDecryptionFailure()) return; diff --git a/src/app/pages/client/call/CallProvider.tsx b/src/app/pages/client/call/CallProvider.tsx index e15ce7e4..2573725d 100644 --- a/src/app/pages/client/call/CallProvider.tsx +++ b/src/app/pages/client/call/CallProvider.tsx @@ -301,16 +301,11 @@ export function CallProvider({ children }: CallProviderProps) { ); return Promise.reject(new Error('Mismatched active call clientWidgetApi')); } - try { - logger.debug( - `CallContext: Sending action '${action}' via active clientWidgetApi (room: ${activeClientWidgetApiRoomId}) with data:`, - data - ); - await activeClientWidgetApi.transport.send(action as WidgetApiAction, data); - } catch (error) { - logger.error(`CallContext: Error sending action '${action}':`, error); - throw error; - } + logger.debug( + `CallContext: Sending action '${action}' via active clientWidgetApi (room: ${activeClientWidgetApiRoomId}) with data:`, + data + ); + await activeClientWidgetApi.transport.send(action as WidgetApiAction, data); }, [activeClientWidgetApi, activeCallRoomId, activeClientWidgetApiRoomId] ); @@ -326,7 +321,6 @@ export function CallProvider({ children }: CallProviderProps) { }); logger.debug(`CallContext: Successfully sent audio toggle action.`); } catch (error) { - logger.error(`CallContext: Failed to send audio toggle action. Reverting state.`, error); setIsAudioEnabledState(!newState); throw error; } @@ -343,7 +337,6 @@ export function CallProvider({ children }: CallProviderProps) { }); logger.debug(`CallContext: Successfully sent video toggle action.`); } catch (error) { - logger.error(`CallContext: Failed to send video toggle action. Reverting state.`, error); setIsVideoEnabledState(!newState); throw error; } diff --git a/src/app/pages/client/call/PersistentCallContainer.tsx b/src/app/pages/client/call/PersistentCallContainer.tsx index 3523ceb4..abe17591 100644 --- a/src/app/pages/client/call/PersistentCallContainer.tsx +++ b/src/app/pages/client/call/PersistentCallContainer.tsx @@ -116,24 +116,18 @@ export function PersistentCallContainer({ children }: PersistentCallContainerPro const smallWidget = new SmallWidget(app); smallWidgetRef.current = smallWidget; - try { - const widgetApiInstance = smallWidget.startMessaging(iframeElement); - widgetApiRef.current = widgetApiInstance; - if (skipLobby) { - registerActiveClientWidgetApi(activeCallRoomId, widgetApiRef.current); - } else { - registerViewedClientWidgetApi(viewedCallRoomId, widgetApiRef.current); - } - - widgetApiInstance.once('ready', () => { - logger.info(`PersistentCallContainer: Widget for ${roomIdToSet} is ready.`); - }); - } catch (error) { - logger.error( - `PersistentCallContainer: Error initializing widget messaging for ${roomIdToSet}:`, - error - ); + const widgetApiInstance = smallWidget.startMessaging(iframeElement); + widgetApiRef.current = widgetApiInstance; + if (skipLobby) { + registerActiveClientWidgetApi(activeCallRoomId, widgetApiRef.current); + } else { + registerViewedClientWidgetApi(viewedCallRoomId, widgetApiRef.current); } + + widgetApiInstance.once('ready', () => { + logger.info(`PersistentCallContainer: Widget for ${roomIdToSet} is ready.`); + }); + } } }, diff --git a/src/app/pages/client/space/Space.tsx b/src/app/pages/client/space/Space.tsx index fb75e61e..0b8083db 100644 --- a/src/app/pages/client/space/Space.tsx +++ b/src/app/pages/client/space/Space.tsx @@ -572,7 +572,6 @@ export function Space() { ); } default: - logger.error('Unknown item type in virtualized list:', item); return null; } };