From c3be61923fd5ef87a4ddb99ada83203257dd7aec Mon Sep 17 00:00:00 2001 From: bang9 Date: Tue, 27 Aug 2024 15:05:27 +0900 Subject: [PATCH] fix: hide feedback button of welcome messages --- src/components/CustomMessage.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/CustomMessage.tsx b/src/components/CustomMessage.tsx index 326c11d27..1b667eaf8 100644 --- a/src/components/CustomMessage.tsx +++ b/src/components/CustomMessage.tsx @@ -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 ?? '') ); };