chore: bump collab (#5042)

* chore: bump collab

* chore: bump client api

* chore: fix test
This commit is contained in:
Nathan.fooo
2024-04-03 11:26:48 +08:00
committed by GitHub
parent e022ee88da
commit a25c728866
15 changed files with 174 additions and 120 deletions

View File

@ -445,8 +445,9 @@ async fn doc_state_from_document_data(
vec![],
false,
)));
let _ = Document::create_with_data(collab.clone(), data).map_err(internal_error)?;
Ok::<_, FlowyError>(collab.encode_collab_v1())
let document = Document::create_with_data(collab.clone(), data).map_err(internal_error)?;
let encode_collab = document.encode_collab()?;
Ok::<_, FlowyError>(encode_collab)
})
.await??;
Ok(encoded_collab)