mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 21:59:48 +00:00
Fixed the workspace name after re-rendering the chat component
This commit is contained in:
parent
1681405fb9
commit
6fcb163abd
@ -123,6 +123,13 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
|
|||||||
this.mustLoadChat = true;
|
this.mustLoadChat = true;
|
||||||
this.Logger.LogInformation($"The loading of the chat '{this.loadChat.ChatId}' was deferred and will be loaded now.");
|
this.Logger.LogInformation($"The loading of the chat '{this.loadChat.ChatId}' was deferred and will be loaded now.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.ChatThread is not null)
|
||||||
|
{
|
||||||
|
this.currentWorkspaceId = this.ChatThread.WorkspaceId;
|
||||||
|
this.currentWorkspaceName = await WorkspaceBehaviour.LoadWorkspaceName(this.ChatThread.WorkspaceId);
|
||||||
|
this.WorkspaceName(this.currentWorkspaceName);
|
||||||
|
}
|
||||||
|
|
||||||
await this.SelectProviderWhenLoadingChat();
|
await this.SelectProviderWhenLoadingChat();
|
||||||
await base.OnInitializedAsync();
|
await base.OnInitializedAsync();
|
||||||
@ -538,14 +545,15 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
|
|||||||
this.currentWorkspaceName = string.Empty;
|
this.currentWorkspaceName = string.Empty;
|
||||||
this.WorkspaceName(this.currentWorkspaceName);
|
this.WorkspaceName(this.currentWorkspaceName);
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.SelectProviderWhenLoadingChat();
|
await this.SelectProviderWhenLoadingChat();
|
||||||
if (this.SettingsManager.ConfigurationData.Chat.ShowLatestMessageAfterLoading)
|
if (this.SettingsManager.ConfigurationData.Chat.ShowLatestMessageAfterLoading)
|
||||||
{
|
{
|
||||||
this.mustScrollToBottomAfterRender = true;
|
this.mustScrollToBottomAfterRender = true;
|
||||||
this.scrollRenderCountdown = 2;
|
this.scrollRenderCountdown = 2;
|
||||||
this.StateHasChanged();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.StateHasChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task ResetState()
|
private async Task ResetState()
|
||||||
|
@ -3,5 +3,6 @@
|
|||||||
- Improved message process debugging. This helps to identify issues related to the message handling.
|
- Improved message process debugging. This helps to identify issues related to the message handling.
|
||||||
- Fixed the hostname validation message for ERI v1 data sources.
|
- Fixed the hostname validation message for ERI v1 data sources.
|
||||||
- Fixed a memory leak in the chat component.
|
- Fixed a memory leak in the chat component.
|
||||||
- Fixed an issue with the workspace title not being updated when a chat was moved to another workspace.
|
- Fixed an issue with the workspace title not being updated when a chat was moved to another workspace.
|
||||||
|
- Fixed an issue with the chat component not loading the current workspace name when the component was refreshed.
|
||||||
- Removed the "send to" button from the ERI server assistant, since it is not supported.
|
- Removed the "send to" button from the ERI server assistant, since it is not supported.
|
Loading…
Reference in New Issue
Block a user