Timothy Jaeryang Baek 4 luni în urmă
părinte
comite
0a1ff4a8fa
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  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;
 				} else if (type === 'chat:message:follow_ups') {
 					message.followUps = data.follow_ups;
+
+					if (autoScroll) {
+						scrollToBottom();
+					}
 				} else if (type === 'chat:title') {
 					chatTitle.set(data);
 					currentChatPage.set(1);