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: send local ai state

Nathan22b9acf386af
diff --git a/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs b/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs
index b4191d15b5..c0475aa88f 100644
--- a/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs
+++ b/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs
@@ -310,10 +310,7 @@ impl LocalAIController {
let key = local_ai_enabled_key(&workspace_id);
let enabled = !self.store_preferences.get_bool(&key).unwrap_or(true);
self.store_preferences.set_bool(&key, enabled)?;
-
- if self.resource.is_resource_ready().await {
- self.toggle_plugin(enabled).await?;
- }
+ self.toggle_plugin(enabled).await?;
Ok(enabled)
}