diff --git a/components/layout/layout-wrapper.tsx b/components/layout/layout-wrapper.tsx index 3d234a6..e0d61ad 100644 --- a/components/layout/layout-wrapper.tsx +++ b/components/layout/layout-wrapper.tsx @@ -22,7 +22,7 @@ export function LayoutWrapper({ children, isSignInPage, isAuthenticated }: Layou const { data: session } = useSession(); // Listen for incoming RocketChat calls via WebSocket - useRocketChatCalls(); + const { incomingCall, setIncomingCall } = useRocketChatCalls(); // Also listen for RocketChat iframe events (fallback) useEffect(() => {