diff --git a/app/(app)/dm/[conversationId]/page.tsx b/app/(app)/dm/[conversationId]/page.tsx index 471ee16..3a1921a 100644 --- a/app/(app)/dm/[conversationId]/page.tsx +++ b/app/(app)/dm/[conversationId]/page.tsx @@ -75,7 +75,6 @@ export default async function DirectMessagePage({ memberId: msg.senderId, member: { id: msg.sender.id, - role: "MEMBER", user: msg.sender, }, })); diff --git a/components/chat/ChatItem.tsx b/components/chat/ChatItem.tsx index e93348c..3764284 100644 --- a/components/chat/ChatItem.tsx +++ b/components/chat/ChatItem.tsx @@ -19,10 +19,9 @@ import { useUser } from "@/lib/context/UserContext"; export type MessageWithMember = Omit & { channelId?: string; conversationId?: string; - type?: "chat" | "dm"; + type: "chat" | "dm"; member: { id: string; - role: string; user: User; }; };