The template's cap on address notes is keyed by the seat's token, so a seat given a new token is noted afresh at once
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CCLa2PaEeCj8njQZSWGqHx
This commit is contained in:
1 parent
210db2d5c3
commit
979891bdcb
1 file changed
+2
-1
@@ -337,7 +337,8 @@ export class Rooms<State, Input> {
|
||||
return;
|
||||
}
|
||||
if (seat.addr === addr) return;
|
||||
const key = `${room.id}/${seat.id}`;
|
||||
// Keyed by the token too: a seat given a new token is noted afresh at once, whoever held it before.
|
||||
const key = `${room.id}/${seat.id}/${seat.tokenHash}`;
|
||||
const now = Date.now();
|
||||
if ((this.seenAt.get(key) ?? 0) > now - SEEN_EVERY_MS) return;
|
||||
this.seenAt.set(key, now);
|
||||
|
||||
Reference in new issue
Block a user