Fix: Conditionally enable auto-saving and chat storing based on workspace settings

This commit is contained in:
Thorsten Sommer 2024-11-23 10:53:35 +01:00
parent 380a3f289a
commit 7106dea87c
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -84,9 +84,12 @@ public partial class Chat : MSGComponentBase, IAsyncDisposable
};
}
}
this.autoSaveEnabled = true;
this.mustStoreChat = true;
if (this.SettingsManager.ConfigurationData.Workspace.StorageBehavior is WorkspaceStorageBehavior.STORE_CHATS_AUTOMATICALLY)
{
this.autoSaveEnabled = true;
this.mustStoreChat = true;
}
}
if (this.SettingsManager.ConfigurationData.Chat.ShowLatestMessageAfterLoading)