be able to encode partial state with holes correctly

This commit is contained in:
Kevin Jahns
2025-06-07 19:18:24 +02:00
parent 8ef8ffc250
commit 92bab00678
20 changed files with 127 additions and 59 deletions

View File

@@ -180,7 +180,6 @@ const checkUpdateCases = (ydoc, updates, enc, hasDeletes) => {
for (let j = 1; j < updates.length; j++) {
const partMerged = enc.mergeUpdates(updates.slice(j))
const partMeta = enc.parseUpdateMeta(partMerged)
const targetSV = enc.encodeStateVectorFromUpdate(enc.mergeUpdates(updates.slice(0, j)))
const diffed = enc.diffUpdate(mergedUpdates, targetSV)
const diffedMeta = enc.parseUpdateMeta(diffed)