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 <noreply@anthropic.com>
This commit is contained in:
2026-05-23 20:16:45 -04:00
parent 3f4c90f56a
commit 83095cc66f
2 changed files with 0 additions and 40 deletions
-34
View File
@@ -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;
-6
View File
@@ -155,12 +155,6 @@ export const useCallEmbedPlacementSync = (containerViewRef: RefObject<HTMLDivEle
if (!embedEl || !container) return;
const rect = container.getBoundingClientRect();
console.log('[CallEmbed] syncCallEmbedPlacement:', {
top: rect.top,
left: rect.left,
width: rect.width,
height: rect.height,
});
embedEl.style.top = `${rect.top}px`;
embedEl.style.left = `${rect.left}px`;
embedEl.style.width = `${rect.width}px`;