Skip to content

Commit

Permalink
fix: hide feedback button of welcome messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 committed Aug 29, 2024
1 parent 58c065d commit c3be619
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/CustomMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ export default function CustomMessage(props: Props) {

const shouldRenderFeedback = () => {
return (
enableEmojiFeedback && message.myFeedbackStatus !== 'NOT_APPLICABLE' && !messageExtension.isStreaming(message)
enableEmojiFeedback &&
message.myFeedbackStatus !== 'NOT_APPLICABLE' &&
!messageExtension.isStreaming(message) &&
!messageExtension.isBotWelcomeMsg(message, botUserId ?? '')
);
};

Expand Down

0 comments on commit c3be619

Please sign in to comment.