Timothy Jaeryang Baek 8 ماه پیش
والد
کامیت
9e2d8470d4
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/lib/components/layout/SearchModal.svelte

+ 3 - 1
src/lib/components/layout/SearchModal.svelte

@@ -14,6 +14,7 @@
 	import { createMessagesList } from '$lib/utils';
 	import { user } from '$lib/stores';
 	import Messages from '../chat/Messages.svelte';
+	import { goto } from '$app/navigation';
 	dayjs.extend(calendar);
 
 	export let show = false;
@@ -303,7 +304,8 @@
 							on:mouseenter={() => {
 								selectedIdx = idx;
 							}}
-							on:click={() => {
+							on:click={async () => {
+								await goto(`/c/${chat.id}`);
 								show = false;
 								onClose();
 							}}