Skip to content

Commit

Permalink
Fix message scrolling after changing channels
Browse files Browse the repository at this point in the history
  • Loading branch information
AxeRicin committed Dec 27, 2023
1 parent e0728e0 commit a411af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/Components/ChatChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ChatChannel = () => {
}
const { scrollHeight } = messagesBox.current;
messagesBox.current.scroll(0, scrollHeight);
}, [isFirstStart, messages]);
}, [isFirstStart, messages, currentChannel]);

return (
<div className="col p-0 h-100">
Expand Down

0 comments on commit a411af4

Please sign in to comment.