in src/components/Chat/ChatTranscriptor/ChatMessages/ChatMessage.js [201:217]
renderContent(content, contentType) {
if (this.props.messageDetails.type === ATTACHMENT_MESSAGE) {
return <AttachmentMessage content={content}
downloadAttachment={this.props.mediaOperations.downloadAttachment}/>;
}
let textContent = content;
if (contentType === ContentType.MESSAGE_CONTENT_TYPE.INTERACTIVE_MESSAGE) {
const {data, templateType} = JSON.parse(content);
if (this.props.isLatestMessage) {
return <InteractiveMessage content={data.content} templateType={templateType}
addMessage={this.props.mediaOperations.addMessage}
textInputRef={this.props.textInputRef}/>
}
textContent = data.content.title;
}
return <PlainTextMessage content={textContent}/>;
}