Fix the visual state of auto-save when workspaces are visible

This commit is contained in:
Thorsten Sommer 2024-11-23 12:55:13 +01:00
parent be6638f31f
commit a9d4283923
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -115,7 +115,12 @@ public partial class Chat : MSGComponentBase, IAsyncDisposable
if (firstRender && this.chatThread is not null && this.mustStoreChat)
{
this.mustStoreChat = false;
await WorkspaceBehaviour.StoreChat(this.chatThread);
if(this.workspaces is not null)
await this.workspaces.StoreChat(this.chatThread);
else
await WorkspaceBehaviour.StoreChat(this.chatThread);
this.currentWorkspaceId = this.chatThread.WorkspaceId;
this.currentWorkspaceName = await WorkspaceBehaviour.LoadWorkspaceName(this.chatThread.WorkspaceId);
}