chore: Display CSAT responses in the message itself. (#6529)

This commit is contained in:
Pranav Raj S
2023-02-23 18:11:46 -08:00
committed by GitHub
parent 60f953cd27
commit e7d0bf8a1b

View File

@@ -257,10 +257,6 @@ export default {
return !!Object.keys(this.translations).length;
},
message() {
if (this.contentType === 'input_csat') {
return this.$t('CONVERSATION.CSAT_REPLY_MESSAGE');
}
// If the message is an email, emailMessageContent would be present
// In that case, we would use letter package to render the email
if (this.emailMessageContent && this.isIncoming) {
@@ -278,6 +274,11 @@ export default {
},
}
);
if (this.contentType === 'input_csat') {
return this.$t('CONVERSATION.CSAT_REPLY_MESSAGE') + botMessageContent;
}
return (
this.formatMessage(
this.data.content,