Update ChatNotifications.tsx

This commit is contained in:
NotII
2025-03-04 22:54:03 +00:00
parent 880613de13
commit df58540053

View File

@@ -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]);