From d52a04a9e3faf31483d4f44dcc73e002c7b39bd1 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 30 Jul 2024 17:40:58 +0800 Subject: [PATCH] chore: update chat input hint --- .../lib/plugins/ai_chat/application/chat_input_bloc.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_input_bloc.dart b/frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_input_bloc.dart index 8a6bdf55be..1d7bf4f589 100644 --- a/frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_input_bloc.dart +++ b/frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_input_bloc.dart @@ -52,7 +52,7 @@ class ChatInputBloc extends Bloc { ); }, updateState: (aiState) { - if (aiState.enabled) { + if (aiState.pluginState.state == RunningStatePB.Running) { emit(const ChatInputState(aiType: _LocalAI())); } else { emit(const ChatInputState(aiType: _AppFlowyAI()));