Skip to content

Commit

Permalink
Fix: Hide the upload button in the external chat box infiniflow#2242 (i…
Browse files Browse the repository at this point in the history
…nfiniflow#4048)

### What problem does this PR solve?

Fix: Hide the upload button in the external chat box  infiniflow#2242

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
cike8899 authored Dec 17, 2024
1 parent cb6e9ce commit 1053ef5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/pages/chat/share/large.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import MessageInput from '@/components/message-input';
import MessageItem from '@/components/message-item';
import { useClickDrawer } from '@/components/pdf-drawer/hooks';
import { MessageType, SharedFrom } from '@/constants/chat';
import { MessageType } from '@/constants/chat';
import { useSendButtonDisabled } from '@/pages/chat/hooks';
import { Flex, Spin } from 'antd';
import { forwardRef } from 'react';
Expand All @@ -15,7 +15,7 @@ import PdfDrawer from '@/components/pdf-drawer';
import styles from './index.less';

const ChatContainer = () => {
const { from, sharedId: conversationId } = useGetSharedChatSearchParams();
const { sharedId: conversationId } = useGetSharedChatSearchParams();
const { visible, hideModal, documentId, selectedChunk, clickDocumentButton } =
useClickDrawer();

Expand Down Expand Up @@ -79,7 +79,7 @@ const ChatContainer = () => {
onPressEnter={handlePressEnter}
sendLoading={sendLoading}
uploadMethod="external_upload_and_parse"
showUploadIcon={from === SharedFrom.Chat}
showUploadIcon={false}
></MessageInput>
</Flex>
{visible && (
Expand Down

0 comments on commit 1053ef5

Please sign in to comment.