mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-07 09:49:40 +00:00
Fixed a rare bug regarding renaming chats (#465)
This commit is contained in:
1 parent
a548cabe24
commit
2e58ecb97d
2 files changed
+9
-1
No files matched your search
@@ -344,6 +344,13 @@ public partial class Workspaces : MSGComponentBase
|
||||
return;
|
||||
|
||||
chat.Name = (dialogResult.Data as string)!;
|
||||
if(this.CurrentChatThread?.ChatId == chat.ChatId)
|
||||
{
|
||||
this.CurrentChatThread.Name = chat.Name;
|
||||
await this.CurrentChatThreadChanged.InvokeAsync(this.CurrentChatThread);
|
||||
await MessageBus.INSTANCE.SendMessage<bool>(this, Event.WORKSPACE_LOADED_CHAT_CHANGED);
|
||||
}
|
||||
|
||||
await this.StoreChat(chat);
|
||||
await this.LoadTreeItems();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user