This commit is contained in:
Timothy Jaeryang Baek
2026-03-25 02:20:33 -05:00
parent debcc3a652
commit 08ff3bd30f
2 changed files with 8 additions and 2 deletions
@@ -3,6 +3,7 @@
const { saveAs } = fileSaver;
import {
chatId,
chats,
user,
settings,
@@ -139,7 +140,12 @@
};
</script>
<ArchivedChatsModal bind:show={showArchivedChatsModal} onUpdate={handleArchivedChatsChange} />
<ArchivedChatsModal bind:show={showArchivedChatsModal} onUpdate={handleArchivedChatsChange} onDelete={(id) => {
if ($chatId === id) {
goto('/');
chatId.set('');
}
}} />
<SharedChatsModal bind:show={showSharedChatsModal} />
<FilesModal bind:show={showFilesModal} />
+1 -1
View File
@@ -594,8 +594,8 @@
}}
onDelete={(id) => {
if ($chatId === id) {
goto('/');
chatId.set('');
window.history.replaceState({}, '', '/');
}
}}
/>