Skip to content

Commit

Permalink
fix: fix chat autoscrolling if position of previous chat not at the b…
Browse files Browse the repository at this point in the history
…ottom (Issue #501)
  • Loading branch information
Alexander-Kezik committed Jan 22, 2024
1 parent 37e5611 commit 2fcf9fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export const Chat = memo(() => {
setIsShowChatSettings(false);

if (selectedConversations.length > 0) {
handleScroll();
const mergedMessages: MergedMessages[] = [];
for (let i = 0; i < selectedConversations[0].messages.length; i++) {
if (selectedConversations[0].messages[i].role === Role.System) continue;
Expand Down

0 comments on commit 2fcf9fe

Please sign in to comment.