Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: delay collab initialization until schema is configured; finalize to ensure collab includes its schema

Nathanbe1d2b4b9259
diff --git a/frontend/rust-lib/collab-integrate/src/collab_builder.rs b/frontend/rust-lib/collab-integrate/src/collab_builder.rs
index e31c38d043..10149bf259 100644
--- a/frontend/rust-lib/collab-integrate/src/collab_builder.rs
+++ b/frontend/rust-lib/collab-integrate/src/collab_builder.rs
@@ -277,7 +277,7 @@ impl AppFlowyCollabBuilder {
let collab_db = collab_db.clone();
let device_id = self.workspace_integrate.device_id()?;
let collab = tokio::task::spawn_blocking(move || {
- let mut collab = CollabBuilder::new(object.uid, &object.object_id, data_source)
+ let collab = CollabBuilder::new(object.uid, &object.object_id, data_source)
.with_device_id(device_id)
.build()?;
let persistence_config = CollabPersistenceConfig::default();
@@ -290,7 +290,6 @@ impl AppFlowyCollabBuilder {
persistence_config,
);
collab.add_plugin(Box::new(db_plugin));
- collab.initialize();
Ok::<_, Error>(collab)
})
.await??;