Timothy Jaeryang Baek hai 4 meses
pai
achega
d5152e43d5
Modificáronse 1 ficheiros con 2 adicións e 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');