From df585400534668047dcef964fa835181c790f096 Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Tue, 4 Mar 2025 22:54:03 +0000 Subject: [PATCH] Update ChatNotifications.tsx --- components/dashboard/ChatNotifications.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/dashboard/ChatNotifications.tsx b/components/dashboard/ChatNotifications.tsx index 9dacb16..0b107c5 100644 --- a/components/dashboard/ChatNotifications.tsx +++ b/components/dashboard/ChatNotifications.tsx @@ -150,8 +150,8 @@ export default function ChatNotifications() { fetchUnreadCounts(); - // Set polling interval (every 30 seconds) - const intervalId = setInterval(fetchUnreadCounts, 30000); + // Set polling interval (every 10 seconds for more responsive notifications) + const intervalId = setInterval(fetchUnreadCounts, 10000); return () => clearInterval(intervalId); }, [loading, previousUnreadTotal]);