diff --git a/web/src/components/next-message-item/group-button.tsx b/web/src/components/next-message-item/group-button.tsx
index 6c0620f75..652ef3392 100644
--- a/web/src/components/next-message-item/group-button.tsx
+++ b/web/src/components/next-message-item/group-button.tsx
@@ -39,6 +39,7 @@ interface IProps {
doc_id: string;
format: string;
};
+ isShare?: boolean;
}
export const AssistantGroupButton = ({
@@ -50,6 +51,7 @@ export const AssistantGroupButton = ({
showLoudspeaker = true,
showLog = true,
attachment,
+ isShare,
}: IProps) => {
const { visible, hideModal, showModal, onFeedbackOk, loading } =
useSendFeedback(messageId);
@@ -115,7 +117,7 @@ export const AssistantGroupButton = ({
)}
- {!!attachment?.doc_id && (
+ {!!attachment?.doc_id && !isShare && (
{
diff --git a/web/src/components/next-message-item/index.tsx b/web/src/components/next-message-item/index.tsx
index 853d87adb..b9e1b3232 100644
--- a/web/src/components/next-message-item/index.tsx
+++ b/web/src/components/next-message-item/index.tsx
@@ -246,6 +246,7 @@ function MessageItem({
showLoudspeaker={showLoudspeaker}
showLog={showLog}
attachment={item.attachment}
+ isShare={isShare}
>
)}
{!isShare && (