Skip to content

Commit

Permalink
Fix: Make sure thread id is set before run (#470)
Browse files Browse the repository at this point in the history
Signed-off-by: Daishan Peng <[email protected]>
  • Loading branch information
StrongMonkey authored Sep 10, 2024
1 parent 2667026 commit 7010579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contexts/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ const ChatContextProvider: React.FC<ChatContextProps> = ({
!socket ||
!connected ||
!initialFetch ||
(enableThread && !threadInitialized.current)
(enableThread && (!thread || !threadInitialized.current))
)
return;
socket.emit(
Expand Down

0 comments on commit 7010579

Please sign in to comment.