diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts index aaba267..3d111e4 100644 --- a/packages/server/src/index.ts +++ b/packages/server/src/index.ts @@ -197,9 +197,11 @@ function inviteHtml(room: Room, rawHost: string, rawProto: string): string { const seats = room.players.length; const wizards = `${seats} wizard${seats === 1 ? "" : "s"}`; const title = `You're summoned — Wiz-War room ${room.id}`; - const desc = room.state - ? `The duel is underway, ${wizards} in the labyrinth. Follow the link to watch it live from the Peanut Gallery.` - : `${wizards} at the table, waiting to flip the boards. Follow the link, pick a name, and take a seat.`; + const desc = room.state?.phase === "finished" + ? `The tale is told — ${wizards} fought in this labyrinth. Follow the link to see how it ended.` + : room.state + ? `The duel is underway, ${wizards} in the labyrinth. Follow the link to watch it live from the Peanut Gallery.` + : `${wizards} at the table, waiting to flip the boards. Follow the link, pick a name, and take a seat.`; const metas = [ `