mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-02 19:55:18 +02:00
Merge pull request #694 from MODSetter/dev
fix(hotpatch): update NewChatPage to set current thread for immediate share but…
This commit is contained in:
commit
7b0b0d109c
1 changed files with 2 additions and 0 deletions
|
|
@ -425,6 +425,8 @@ export default function NewChatPage() {
|
|||
const newThread = await createThread(searchSpaceId, "New Chat");
|
||||
currentThreadId = newThread.id;
|
||||
setThreadId(currentThreadId);
|
||||
// Set currentThread so ChatHeader can show share button immediately
|
||||
setCurrentThread(newThread);
|
||||
|
||||
// Track chat creation
|
||||
trackChatCreated(searchSpaceId, currentThreadId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue