mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
fix: update NewChatPage to set current thread for immediate share button visibility
This commit is contained in:
parent
f3f661f33e
commit
fd3f2660f6
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