remove old move-ranges if collapsed

This commit is contained in:
Kevin Jahns
2022-07-06 18:57:12 +02:00
parent 4078e115c1
commit 0ce40596d1
6 changed files with 118 additions and 24 deletions

View File

@@ -455,3 +455,10 @@ export const transact = (doc, f, origin = null, local = true) => {
}
return res
}
/**
* @param {Transaction} tr
* @param {AbstractStruct} struct
*/
export const addsStruct = (tr, struct) =>
struct.id.clock >= (tr.beforeState.get(struct.id.client) || 0)