fix: various fixes around discover

This commit is contained in:
Shibo Lyu 2024-09-11 03:02:04 +08:00
parent ca3dba04e0
commit 78d30020c3
6 changed files with 21 additions and 18 deletions

View file

@ -75,7 +75,6 @@ export function useChat(
sections.push(currentSection);
console.log(sections);
return sections;
});

View file

@ -29,7 +29,6 @@ export class ChatListManager {
existing.lastMessage = newChat.lastMessage ?? existing.lastMessage;
} else {
chatList.push(newChat);
console.log('new chat added to list', newChat);
}
}

View file

@ -25,12 +25,9 @@ export class GlobalSearchManager {
}
const results = await Promise.allSettled(jobs);
console.log(results);
const chats: { joined: Chat[]; public: Chat[] } = { joined: [], public: [] };
for (const result of results) {
console.log(result);
if (result.status === 'rejected') continue;
const [type, chatList] = result.value;