Timothy Jaeryang Baek 7 luni în urmă
părinte
comite
952822ad5d
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/lib/components/chat/Chat.svelte

+ 1 - 1
src/lib/components/chat/Chat.svelte

@@ -890,7 +890,7 @@
 			return null;
 		});
 
-		if (res !== null) {
+		if (res !== null && res.messages) {
 			// Update chat history with the new messages
 			for (const message of res.messages) {
 				history.messages[message.id] = {