chore: Display CSAT responses in the message itself. (#6529)
This commit is contained in:
@@ -257,10 +257,6 @@ export default {
|
|||||||
return !!Object.keys(this.translations).length;
|
return !!Object.keys(this.translations).length;
|
||||||
},
|
},
|
||||||
message() {
|
message() {
|
||||||
if (this.contentType === 'input_csat') {
|
|
||||||
return this.$t('CONVERSATION.CSAT_REPLY_MESSAGE');
|
|
||||||
}
|
|
||||||
|
|
||||||
// If the message is an email, emailMessageContent would be present
|
// If the message is an email, emailMessageContent would be present
|
||||||
// In that case, we would use letter package to render the email
|
// In that case, we would use letter package to render the email
|
||||||
if (this.emailMessageContent && this.isIncoming) {
|
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 (
|
return (
|
||||||
this.formatMessage(
|
this.formatMessage(
|
||||||
this.data.content,
|
this.data.content,
|
||||||
|
|||||||
Reference in New Issue
Block a user