Reimplemented rooms with live update

This commit is contained in:
pascalyazid committed 2026-05-15 18:37:46 +02:00
1 parent 347f4b0999
commit 94c544b161
7 files changed
+25 -23

No files matched your search

+5 -5
View File
@@ -9,9 +9,9 @@ import { buildMemberMap } from "./member-map";
export default async function RoomDetailPage({
params,
}: {
}: Readonly<{
params: Promise<{ id: string }>;
}) {
}>) {
const { id } = await params;
const supabase = await createClient();
@@ -43,9 +43,9 @@ export default async function RoomDetailPage({
]);
return (
<div className="flex h-full flex-col">
<div className="flex h-[calc(100vh)] flex-col md:h-screen">
{/* Header */}
<div className="flex items-center justify-between border-b border-neutral-200 bg-white px-6 py-3">
<div className="flex shrink-0 items-center justify-between bg-white px-6 py-3">
<div className="flex items-center gap-3">
<Link
href="/rooms"
@@ -77,7 +77,7 @@ export default async function RoomDetailPage({
</div>
{/* Chat */}
<div className="flex-1 overflow-hidden">
<div className="flex min-h-0 flex-1 flex-col overflow-hidden">
<Chat
roomId={id}
initialMessages={messages}