"Updated icon in AiChatPage, changed method signature in HistoryAiChatState, removed web/icons/icon.png and updated web/index.html to reference icon.jpg instead"
This commit is contained in:
parent
7c74587785
commit
4a14560802
|
|
@ -281,7 +281,7 @@ class _AiChatPageState extends State<AiChatPage> {
|
|||
),
|
||||
)));
|
||||
},
|
||||
child: const Icon(Icons.shopping_bag_outlined)),
|
||||
child: const Icon(DidvanIcons.note_regular)),
|
||||
)
|
||||
],
|
||||
centerTitle: true,
|
||||
|
|
|
|||
|
|
@ -47,18 +47,18 @@ class HistoryAiChatState extends CoreProvier {
|
|||
}
|
||||
|
||||
Future<void> 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();
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 4.7 KiB |
|
|
@ -24,7 +24,7 @@
|
|||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
||||
<meta name="apple-mobile-web-app-title" content="didvan" />
|
||||
<link rel="apple-touch-icon" href="icons/icon.png" />
|
||||
<link rel="apple-touch-icon" href="icons/icon.jpg" />
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="icon" type="image/png" href="favicon.png" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue