Timothy Jaeryang Baek hace 4 meses
padre
commit
d5152e43d5
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/lib/components/layout/Sidebar/ChatItem.svelte

+ 2 - 1
src/lib/components/layout/Sidebar/ChatItem.svelte

@@ -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');