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:
@@ -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;
|
||||
|
||||
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user