aboutsummaryrefslogtreecommitdiffstats
path: root/src/document/sync
diff options
context:
space:
mode:
Diffstat (limited to 'src/document/sync')
-rw-r--r--src/document/sync/model.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/document/sync/model.rs b/src/document/sync/model.rs
index ad8c6c3..b3bb703 100644
--- a/src/document/sync/model.rs
+++ b/src/document/sync/model.rs
@@ -170,7 +170,7 @@ fn run(seed: u64, push_below: usize) -> (BTreeMap<String, String>, BTreeMap<Stri
// Behind the peer: pull (`relay::pull_if_behind`).
if heads
.iter()
- .any(|head| side.doc.get_change_by_hash(head).is_none())
+ .any(|head| !crate::document::changes::holds(&side.doc, head))
{
side.session.pull_from(heads);
} else if side.session.reply.is_some() && heads == side.doc.get_heads() {