@@ -110,9 +110,10 @@
if (res) {
tags.set(await getAllTags(localStorage.token));
if ($chatId === id) {
+ await goto('/');
+
await chatId.set('');
await tick();
- goto('/');
}
dispatch('change');