Timothy Jaeryang Baek 4 months ago
parent
commit
0a1ff4a8fa
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/components/chat/Chat.svelte

+ 4 - 0
src/lib/components/chat/Chat.svelte

@@ -302,6 +302,10 @@
 					message.files = data.files;
 					message.files = data.files;
 				} else if (type === 'chat:message:follow_ups') {
 				} else if (type === 'chat:message:follow_ups') {
 					message.followUps = data.follow_ups;
 					message.followUps = data.follow_ups;
+
+					if (autoScroll) {
+						scrollToBottom();
+					}
 				} else if (type === 'chat:title') {
 				} else if (type === 'chat:title') {
 					chatTitle.set(data);
 					chatTitle.set(data);
 					currentChatPage.set(1);
 					currentChatPage.set(1);