This commit is contained in:
Timothy Jaeryang Baek
2026-03-21 18:10:01 -05:00
parent bb3526f4e4
commit 5b026b2a3e
5 changed files with 22 additions and 6 deletions
@@ -155,6 +155,12 @@
const archiveChatHandler = async (id) => {
try {
await archiveChatById(localStorage.token, id);
if ($chatId === id) {
chatId.set('');
window.history.replaceState({}, '', '/');
}
dispatch('change');
toast.success($i18n.t('Chat archived.'));
} catch (error) {