Reimplemented outdated code, added encryption keys for each room, added support for profile images, added friend requests via url/qr-code

This commit is contained in:
pascalyazid committed 2026-05-11 21:35:28 +02:00
1 parent 508f17315e
commit 32e4bf8b32
58 files changed
+3270 -362

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
import { listRooms } from "@/utils/rooms/rooms";
import { CreateRoomForm } from "./create-room-form";
import { RoomsList, type RoomEntry } from "./rooms-list";
export default async function RoomsPage() {
const rawRooms = await listRooms();
const rooms: RoomEntry[] = rawRooms ?? [];
return (
<div className="mx-auto max-w-3xl px-6 py-10">
<h1 className="text-2xl font-semibold text-neutral-900">Rooms</h1>
<p className="mt-1 text-sm text-neutral-500">
Your conversations will appear here.
</p>
<div className="mt-8 space-y-8">
{/* Create room */}
<div className="rounded-xl border border-neutral-200 bg-white p-5 shadow-sm">
<CreateRoomForm />
</div>
{/* Rooms list */}
<RoomsList rooms={rooms} />
</div>
</div>
);
}