diff --git a/frontend/src/Components/ChatChannel.js b/frontend/src/Components/ChatChannel.js index 53abd41..7765a3f 100644 --- a/frontend/src/Components/ChatChannel.js +++ b/frontend/src/Components/ChatChannel.js @@ -25,7 +25,7 @@ const ChatChannel = () => { } const { scrollHeight } = messagesBox.current; messagesBox.current.scroll(0, scrollHeight); - }, [isFirstStart, messages]); + }, [isFirstStart, messages, currentChannel]); return (