feat: Add option to resume last chat when opening Web UI

This commit is contained in:
n4ze3m
2024-11-30 19:04:45 +05:30
parent 8d12e9152c
commit e5e04c3674
19 changed files with 113 additions and 7 deletions

View File

@@ -39,6 +39,10 @@ export const copilotResumeLastChat = async () => {
return await storage.get<boolean>("copilotResumeLastChat")
}
export const webUIResumeLastChat = async () => {
return await storage.get<boolean>("webUIResumeLastChat")
}
export const defaultSidebarOpen = async () => {
const sidebarOpen = await storage.get("sidebarOpen")
if (!sidebarOpen || sidebarOpen === "") {