mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-21 23:04:49 +01:00
fix: don't send noops
This commit is contained in:
parent
eeb72545c6
commit
a8d0cb0666
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue