From b48c9817fd2db31e3a3bfc8764219a4e816196f5 Mon Sep 17 00:00:00 2001 From: alma Date: Fri, 16 Jan 2026 02:02:08 +0100 Subject: [PATCH] refactor Notifications rc --- components/layout/layout-wrapper.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/layout/layout-wrapper.tsx b/components/layout/layout-wrapper.tsx index 63e48a2..8c2041f 100644 --- a/components/layout/layout-wrapper.tsx +++ b/components/layout/layout-wrapper.tsx @@ -27,6 +27,9 @@ export function LayoutWrapper({ children, isSignInPage, isAuthenticated }: Layou // Listen for incoming RocketChat calls via WebSocket const { incomingCall, setIncomingCall } = useRocketChatCalls(); + // Listen for email notifications + const { emailNotification, setEmailNotification } = useEmailNotifications(); + // Also listen for RocketChat iframe events (fallback) useEffect(() => { if (isSignInPage) return;