update Tue 07/14/2026 16:45:47.62

This commit is contained in:
2026-07-14 16:45:49 +10:00
parent ac1bb7121a
commit 1814125243
9 changed files with 432 additions and 99 deletions
+2 -1
View File
@@ -121,7 +121,8 @@ function scheduleRemove(uid) {
const e = activeGhosts.get(uid);
if (!e) return removeGhost(uid);
// let the client-side crossfade (driven by rec.until) finish, then remove
const wait = Math.max(0, e.rec.until - (Date.now() + clockOffset)) + (e.rec.crossfade || 3) * 1000;
const until = e.rec.until ?? (Date.now() + clockOffset); // residents removed by config change: fade now
const wait = Math.max(0, until - (Date.now() + clockOffset)) + (e.rec.crossfade || 3) * 1000;
setTimeout(() => removeGhost(uid), Math.min(wait, 8000));
}