Opening a saved birth-time session no longer restamps the title or updatedAt from the wall clock. Occupies BUG-699, recurrence of BUG-553.
10 lines
305 B
TypeScript
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;
|
|
}
|