Skip to content

Commit

Permalink
Should not clear threadCommMap on selectThread
Browse files Browse the repository at this point in the history
  • Loading branch information
fjsj committed Jan 3, 2025
1 parent b1535b5 commit 7eb8c9e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion contexts/ChatContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ export function ChatProvider({
// Thread selection function
const selectThread = useCallback(
(threadId: string) => {
setThreadCommMap(new Map());
setCurrentThreadId(threadId);
receiveThreadCommunications(threadId);
},
Expand Down

0 comments on commit 7eb8c9e

Please sign in to comment.