From 1afa6d795da81da4a50605629896fc6581860c37 Mon Sep 17 00:00:00 2001 From: Mukesh Date: Thu, 19 Sep 2024 14:59:33 +0200 Subject: [PATCH] fix: react hook warning --- client/src/components/Messaging/UserStatusInfo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Messaging/UserStatusInfo.tsx b/client/src/components/Messaging/UserStatusInfo.tsx index 9de33fd..7082145 100644 --- a/client/src/components/Messaging/UserStatusInfo.tsx +++ b/client/src/components/Messaging/UserStatusInfo.tsx @@ -35,7 +35,7 @@ export const UserStatusInfo = ({ chate2ee.onPCStateChanged((state) => { setCallState(state); }); - }, []); + }, [chate2ee]); const makeCall = async () => { if(call) {