Use actual op.id in update

This commit is contained in:
Andrew Jeffery 2021-05-11 16:21:02 +01:00
parent cf1ad2c5f8
commit 94c02f061c

View file

@ -145,7 +145,7 @@ impl OpSet {
.ok_or(AutomergeError::HeadToOpId)?;
let index = object.index_of(opid).unwrap_or(0);
tracing::debug!("updating existing element");
Some(PendingDiff::SeqUpdate(op.clone(), index, opid))
Some(PendingDiff::SeqUpdate(op.clone(), index, op.id))
}
(true, false) => {
let opid = op