mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-05 20:17:13 +00:00
fix: handle on new container correctly
when using diff calc for unknown span
This commit is contained in:
parent
e7bf12cc14
commit
e9be422046
1 changed files with 8 additions and 0 deletions
|
@ -756,6 +756,14 @@ impl DiffCalculatorTrait for ListDiffCalculator {
|
|||
h.find_list_chunks_in(idx, IdSpan::new(id.peer, id.counter, target_end));
|
||||
for c in chunks {
|
||||
acc_len += c.length();
|
||||
match &c.values {
|
||||
Either::Left(_) => unreachable!(),
|
||||
Either::Right(r) => {
|
||||
if let LoroValue::Container(c) = r {
|
||||
on_new_container(c)
|
||||
}
|
||||
}
|
||||
}
|
||||
delta = delta.insert(c);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue