fix: don't send noops

This commit is contained in:
əlemi 2023-04-13 03:23:44 +02:00
parent eeb72545c6
commit a8d0cb0666

View file

@ -20,6 +20,7 @@ impl OperationFactory {
}
fn apply(&mut self, op: OperationSeq) -> Result<OperationSeq, OTError> {
if op.is_noop() { return Err(OTError) }
self.content = op.apply(&self.content)?;
self.queue.push_back(op.clone());
Ok(op)