diff --git a/src/app/message/chat/[roomId]/page.tsx b/src/app/message/chat/[roomId]/page.tsx index 246e8773..e9dcb856 100644 --- a/src/app/message/chat/[roomId]/page.tsx +++ b/src/app/message/chat/[roomId]/page.tsx @@ -1,12 +1,16 @@ import { cookies } from 'next/headers'; +import { API } from '@/api'; + import ChatRoomPage from './ChatRoomPage'; export default async function Page({ params }: { params: Promise<{ roomId: string }> }) { const resolvedParams = await params; const cookieStore = await cookies(); const accessToken = cookieStore.get('accessToken')?.value; - const userId = Number(cookieStore.get('userId')?.value || 0); + + const me = await API.userService.getMeSkipRedirect(); + const userId = me.userId; return (