ThreadCount Community edition
Release / release (push) Has been skipped

Uniform stock management for healthcare linen rooms: the coordinator app, the phone counter and the staff app, for your own server. Built from 794bab5 on 2026-09-16. Licensed under the Functional Source License (FSL-1.1-ALv2).
This commit is contained in:
ThreadCount
2026-09-17 05:49:16 +10:00
commit f72f0626b0
481 changed files with 59411 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { redirect } from "next/navigation";
import { currentStaff } from "@/lib/staffsession";
import { messagesData } from "@/lib/staffdata";
import MessagesScreen from "@/components/screens/Messages";
export const dynamic = "force-dynamic";
/** The screen behind the Messages tab. Empty is a state, not a refusal — see the (b4) table: there
* is nothing private about having said nothing yet, and the screen can say where a thread starts. */
export default async function MyMessages() {
const sess = await currentStaff();
if (!sess) redirect("/my/signin");
const { threads, startable } = await messagesData(sess);
return <MessagesScreen threads={threads} startable={startable} />;
}