diff --git a/src/features/ChattingForm.tsx b/src/features/ChattingForm.tsx index e8e04a9..2f2e2cf 100644 --- a/src/features/ChattingForm.tsx +++ b/src/features/ChattingForm.tsx @@ -393,7 +393,7 @@ export default function ChattingForm() { } }; } - }, []); + }, [selectedChatRoom, queryClient]); useEffect(() => { if (selectedChatRoom) {