Skip to content

feature: match chat archive and chat log - #502

Merged
lukepolo merged 3 commits into
mainfrom
feature/match-chat-archive
Oct 3, 2026
Merged

lukepolo merged 3 commits into
mainfrom
feature/match-chat-archive

Conversation

@lukepolo

@lukepolo lukepolo commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Keeps a capped 7-day archive of every match and team chat line so staff can review a match after its live rooms expire.

  • Every Match and MatchTeam line, from the web or the game, is copied to chat:archive:<matchId>, capped at 5000 lines, 8 MB and 16 KB per line, and flagged when cut short
  • The archive expires a week after the match ends and is deleted with its match; restarting a match slides the expiry again
  • Edits are rate limited, applied once and in order, and keep the original text plus the last four versions; deletes keep the line and who deleted it
  • New GET /chat/matches/:matchId/log for match organizers and above, by their current role, once a match has ended; anyone who took part gets all chat only
  • Archive failures never affect sending, editing, deleting or draft moves, and the archive is never served over the websocket

From DEAFCS: DEAFCS/api-deafcs@ce8576c1

@lukepolo
lukepolo merged commit 22ae352 into main Oct 3, 2026
2 checks passed
@lukepolo
lukepolo deleted the feature/match-chat-archive branch October 3, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant