This commit is contained in:
Timothy Jaeryang Baek
2026-03-17 18:52:02 -05:00
parent b8ea267f8e
commit 58e78e8946
7 changed files with 24 additions and 8 deletions
@@ -81,7 +81,9 @@
allChatsLoaded = newChatList.length === 0;
if (newChatList.length > 0) {
chatList = [...chatList, ...newChatList];
const existingIds = new Set(chatList.map((c) => c.id));
const uniqueNewChats = newChatList.filter((c) => !existingIds.has(c.id));
chatList = [...chatList, ...uniqueNewChats];
}
chatListLoading = false;