[match/list] actually record room visits

This commit is contained in:
Devin Zuczek
2026-10-15 23:24:45 -04:00
parent f8a6338eaa
commit c52b37037e
5 changed files with 102 additions and 25 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ const ROW_FEEDS: Record<string, RowFeed> = {
const PERSONAL_ROW_FEEDS: Record<string, (db: D1Database, accountId: number) => Promise<Room[]>> = {
// Rooms the caller has been in, most recently visited first — the "Continue Playing"
// carousel as an algorithmic row. Backed by the `interaction` table's `last_visited_at`,
// which the `match` heartbeat stamps, and served straight from `getVisitedRooms` so this
// which every `match` matchmake stamps, and served straight from `getVisitedRooms` so this
// row and `rooms` `GET /rooms/visitedby/me` can never disagree about where someone has been.
recentlyvisited: (db, accountId) => getVisitedRooms(db, accountId, 0, LIST_SIZE),
}