mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 23:16:58 +08:00
Fix: Fix share-chat bugs (#9150)
### What problem does this PR solve? Fix: Fix share-chat bugs #3221 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -44,6 +44,7 @@ interface IProps
|
||||
nickname?: string;
|
||||
avatar?: string;
|
||||
avatarDialog?: string | null;
|
||||
agentName?: string;
|
||||
clickDocumentButton?: (documentId: string, chunk: IReferenceChunk) => void;
|
||||
index: number;
|
||||
showLikeButton?: boolean;
|
||||
@ -60,6 +61,7 @@ function MessageItem({
|
||||
loading = false,
|
||||
avatar,
|
||||
avatarDialog,
|
||||
agentName,
|
||||
sendLoading = false,
|
||||
clickDocumentButton,
|
||||
removeMessageById,
|
||||
@ -120,8 +122,8 @@ function MessageItem({
|
||||
{visibleAvatar &&
|
||||
(item.role === MessageType.User ? (
|
||||
<RAGFlowAvatar avatar={avatar ?? '/logo.svg'} />
|
||||
) : avatarDialog ? (
|
||||
<RAGFlowAvatar avatar={avatarDialog} />
|
||||
) : avatarDialog || agentName ? (
|
||||
<RAGFlowAvatar avatar={avatarDialog} name={agentName} isPerson />
|
||||
) : (
|
||||
<AssistantIcon />
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user