diff --git a/front/components/assistant/TryAssistant.tsx b/front/components/assistant/TryAssistant.tsx index 522c38762667..ac3c96287f4d 100644 --- a/front/components/assistant/TryAssistant.tsx +++ b/front/components/assistant/TryAssistant.tsx @@ -135,7 +135,7 @@ export function TryAssistant({ {conversation && (
)} diff --git a/front/components/assistant/conversation/AgentMessage.tsx b/front/components/assistant/conversation/AgentMessage.tsx index d960c1e352d8..b86796b17c58 100644 --- a/front/components/assistant/conversation/AgentMessage.tsx +++ b/front/components/assistant/conversation/AgentMessage.tsx @@ -60,6 +60,7 @@ export function AgentMessage({ conversationId, reactions, isInModal, + hideReactions, }: { message: AgentMessageType; owner: WorkspaceType; @@ -67,6 +68,7 @@ export function AgentMessage({ conversationId: string; reactions: MessageReactionType[]; isInModal?: boolean; + hideReactions?: boolean; }) { const [streamedAgentMessage, setStreamedAgentMessage] = useState(message); @@ -353,7 +355,7 @@ export function AgentMessage({ buttons={buttons} avatarBusy={agentMessageToRender.status === "created"} reactions={reactions} - enableEmojis={true} + enableEmojis={!hideReactions} renderName={() => { return (
diff --git a/front/components/assistant/conversation/Conversation.tsx b/front/components/assistant/conversation/Conversation.tsx index 2e7ba84d7410..4956d2aca8e5 100644 --- a/front/components/assistant/conversation/Conversation.tsx +++ b/front/components/assistant/conversation/Conversation.tsx @@ -31,12 +31,14 @@ export default function Conversation({ conversationId, onStickyMentionsChange, isInModal, + hideReactions, }: { owner: WorkspaceType; user: UserType; conversationId: string; onStickyMentionsChange?: (mentions: AgentMention[]) => void; isInModal?: boolean; + hideReactions?: boolean; }) { const { conversation, @@ -202,6 +204,7 @@ export default function Conversation({ owner={owner} user={user} reactions={messageReactions} + hideReactions={hideReactions} />
@@ -217,6 +220,7 @@ export default function Conversation({ conversationId={conversationId} reactions={messageReactions} isInModal={isInModal} + hideReactions={hideReactions} /> diff --git a/front/components/assistant/conversation/UserMessage.tsx b/front/components/assistant/conversation/UserMessage.tsx index f52b617b8fa2..bfcb0edd08e3 100644 --- a/front/components/assistant/conversation/UserMessage.tsx +++ b/front/components/assistant/conversation/UserMessage.tsx @@ -16,12 +16,14 @@ export function UserMessage({ owner, user, reactions, + hideReactions, }: { message: UserMessageType; conversation: ConversationType; owner: WorkspaceType; user: UserType; reactions: MessageReactionType[]; + hideReactions?: boolean; }) { const { agentConfigurations } = useAgentConfigurations({ workspaceId: owner.sId, @@ -37,7 +39,7 @@ export function UserMessage({ pictureUrl={message.user?.image || message.context.profilePictureUrl} name={message.context.fullName} reactions={reactions} - enableEmojis={true} + enableEmojis={!hideReactions} renderName={(name) =>
{name}
} >