Files
Jyotisha/frontend/src/lib/rectification-session-open.ts
T
jesse-ux 2d7698ead3
Independent Staging Quality Gate / validate (push) Successful in 11m43s
Independent Staging Quality Gate / publish (push) Successful in 2m3s
fix(chat): keep stored rectification titles on open
Opening a saved birth-time session no longer restamps the title or updatedAt from the wall clock. Occupies BUG-699, recurrence of BUG-553.
2026-09-15 14:48:03 +08:00

10 lines
305 B
TypeScript

export function rectificationOpenIdentity(
existing: { title: string; updatedAt: number } | undefined,
minted: { title: string; updatedAt: number },
): { title: string; updatedAt: number } {
if (existing) {
return { title: existing.title, updatedAt: existing.updatedAt };
}
return minted;
}