ref(chat): use message type as classname

This commit is contained in:
Leonard Kim 2019-05-08 13:34:39 -07:00 committed by virtuacoplenny
parent fb5a45f714
commit afde717ca4
1 changed files with 1 additions and 8 deletions

View File

@ -130,17 +130,10 @@ class Chat extends AbstractChat<Props> {
const messages = groupedMessages.map((group, index) => {
const messageType = group[0] && group[0].messageType;
let className = 'remote';
if (messageType === 'local') {
className = 'local';
} else if (messageType === 'error') {
className = 'error';
}
return (
<ChatMessageGroup
className = { className }
className = { messageType || 'remote' }
key = { index }
messages = { group } />
);