diff --git a/lib/views/ai/ai_chat_page.dart b/lib/views/ai/ai_chat_page.dart index 20e414e..7520292 100644 --- a/lib/views/ai/ai_chat_page.dart +++ b/lib/views/ai/ai_chat_page.dart @@ -281,7 +281,7 @@ class _AiChatPageState extends State { ), ))); }, - child: const Icon(Icons.shopping_bag_outlined)), + child: const Icon(DidvanIcons.note_regular)), ) ], centerTitle: true, diff --git a/lib/views/ai/history_ai_chat_state.dart b/lib/views/ai/history_ai_chat_state.dart index 2d24cd7..5425f7f 100644 --- a/lib/views/ai/history_ai_chat_state.dart +++ b/lib/views/ai/history_ai_chat_state.dart @@ -47,18 +47,18 @@ class HistoryAiChatState extends CoreProvier { } Future getSearchChats( - {required final String q, final bool? archived}) async { + {required final String q, final bool archived = false}) async { final service = RequestService( - archived != null && archived + archived ? RequestHelper.aiSearchArchived(q) : RequestHelper.aiSearchChats(q), ); await service.httpGet(); if (service.isSuccess) { - chats.clear(); + archivedChats.clear(); final ch = service.result['chats']; for (var i = 0; i < ch.length; i++) { - chats.add(ChatsModel.fromJson(ch[i])); + archivedChats.add(ChatsModel.fromJson(ch[i])); } appState = AppState.idle; update(); diff --git a/web/icons/icon.png b/web/icons/icon.png deleted file mode 100644 index d32aa17..0000000 Binary files a/web/icons/icon.png and /dev/null differ diff --git a/web/index.html b/web/index.html index bf5f328..3f1c006 100644 --- a/web/index.html +++ b/web/index.html @@ -24,7 +24,7 @@ - +