diff --git a/y-octo-node/native/src/doc.rs b/y-octo-node/native/src/doc.rs index 8ee1748..75f8c2e 100644 --- a/y-octo-node/native/src/doc.rs +++ b/y-octo-node/native/src/doc.rs @@ -120,7 +120,8 @@ impl YDoc { self.doc.apply_update_from_binary_v1(update)?; // if update received from remote and current client state has been changed - // that means another client using same client id, we need to change the client id to avoid conflict + // that means another client using same client id, we need to change the client + // id to avoid conflict if self.doc.get_state_vector().get(&client) != before_current_state { self.doc.renew_client(); }