From 3ae05a672d883696dc6839eb4ee0f049b4eb07cb Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Tue, 22 Oct 2024 18:24:13 +0800 Subject: [PATCH] fix: webapp answer icon (#9654) --- .../base/chat/chat-with-history/chat-wrapper.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/web/app/components/base/chat/chat-with-history/chat-wrapper.tsx b/web/app/components/base/chat/chat-with-history/chat-wrapper.tsx index ea68953fff..e632b14969 100644 --- a/web/app/components/base/chat/chat-with-history/chat-wrapper.tsx +++ b/web/app/components/base/chat/chat-with-history/chat-wrapper.tsx @@ -15,6 +15,7 @@ import { getUrl, stopChatMessageResponding, } from '@/service/share' +import AnswerIcon from '@/app/components/base/answer-icon' const ChatWrapper = () => { const { @@ -87,7 +88,6 @@ const ChatWrapper = () => { ) }, [ chatListRef, - appConfig, currentConversationId, currentConversationItem, handleSend, @@ -150,6 +150,15 @@ const ChatWrapper = () => { isMobile, ]) + const answerIcon = (appData?.site && appData.site.use_icon_as_answer_icon) + ? + : null + return (
{ allToolIcons={appMeta?.tool_icons || {}} onFeedback={handleFeedback} suggestedQuestions={suggestedQuestions} + answerIcon={answerIcon} hideProcessDetail themeBuilder={themeBuilder} />