fix: harden booking and meeting flows

This commit is contained in:
2026-09-17 02:42:27 +02:00
parent cb30ecade9
commit 66710fc65c
42 changed files with 683 additions and 608 deletions
+2
View File
@@ -36,6 +36,8 @@ export function getMeetingStatus({
const closeAt = end.getTime() + closeAfterMinutes * 60_000;
const t = now.getTime();
if (![openAt, closeAt, t].every(Number.isFinite) || end <= start) return "ended";
if (t >= closeAt) return "ended";
if (t >= start.getTime()) return "live";
if (t >= openAt) return "open";