From 83095cc66f3a04953f5d25c1759da962f6ec52d5 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sat, 23 May 2026 20:16:45 -0400 Subject: [PATCH] chore: remove debug console.log calls from CallEmbed Remove [CallEmbed] state, container styles, and syncCallEmbedPlacement debug logs that were flooding the console during call sessions. Co-Authored-By: Claude Sonnet 4.6 --- src/app/components/CallEmbedProvider.tsx | 34 ------------------------ src/app/hooks/useCallEmbed.ts | 6 ----- 2 files changed, 40 deletions(-) diff --git a/src/app/components/CallEmbedProvider.tsx b/src/app/components/CallEmbedProvider.tsx index be91e373e..d893f4d25 100644 --- a/src/app/components/CallEmbedProvider.tsx +++ b/src/app/components/CallEmbedProvider.tsx @@ -445,40 +445,6 @@ export function CallEmbedProvider({ children }: CallEmbedProviderProps) { // Track previous pipMode to only reset position when entering/exiting pip const prevPipModeRef = React.useRef(false); - // Debug: log whenever call embed visibility/mode changes - React.useEffect(() => { - console.log('[CallEmbed] state:', { - callEmbedRoomId: callEmbed?.roomId, - selectedRoom, - joined, - inCallRoom: !!inCallRoom, - callVisible: !!callVisible, - pipMode: !!pipMode, - chatOnlyView: !!chatOnlyView, - }); - const el = callEmbedRef.current; - if (el) { - console.log('[CallEmbed] container styles:', { - top: el.style.top, - left: el.style.left, - width: el.style.width, - height: el.style.height, - visibility: el.style.visibility, - bottom: el.style.bottom, - right: el.style.right, - }); - } - }, [ - callEmbed?.roomId, - selectedRoom, - joined, - inCallRoom, - callVisible, - pipMode, - chatOnlyView, - callEmbedRef, - ]); - React.useEffect(() => { const el = callEmbedRef.current; if (!el) return; diff --git a/src/app/hooks/useCallEmbed.ts b/src/app/hooks/useCallEmbed.ts index 052bd7c39..25650bec3 100644 --- a/src/app/hooks/useCallEmbed.ts +++ b/src/app/hooks/useCallEmbed.ts @@ -155,12 +155,6 @@ export const useCallEmbedPlacementSync = (containerViewRef: RefObject