fix: tag unarchive/archive issue

This commit is contained in:
Timothy J. Baek
2024-10-14 22:57:11 -07:00
parent d8a30bd6ae
commit 6703cacb99
9 changed files with 72 additions and 30 deletions

View File

@@ -10,6 +10,7 @@
archiveChatById,
cloneChatById,
deleteChatById,
getAllTags,
getChatList,
getChatListByTagName,
getPinnedChatList,
@@ -22,7 +23,8 @@
mobile,
pinnedChats,
showSidebar,
currentChatPage
currentChatPage,
tags
} from '$lib/stores';
import ChatMenu from './ChatMenu.svelte';
@@ -77,6 +79,7 @@
const archiveChatHandler = async (id) => {
await archiveChatById(localStorage.token, id);
tags.set(await getAllTags(localStorage.token));
currentChatPage.set(1);
await chats.set(await getChatList(localStorage.token, $currentChatPage));