Move to react for newlines, emoji, and links in message body

This commit is contained in:
Scott Nonnenberg 2018-05-14 13:52:10 -07:00
parent 721935b0c8
commit 4e5c8965ff
15 changed files with 400 additions and 29 deletions

View file

@ -4,6 +4,8 @@ import classnames from 'classnames';
import * as MIME from '../../../ts/types/MIME';
import * as GoogleChrome from '../../../ts/util/GoogleChrome';
import { MessageBody } from './MessageBody';
interface Props {
attachments: Array<QuotedAttachment>;
authorColor: string;
@ -111,7 +113,9 @@ export class Quote extends React.Component<Props, {}> {
if (text) {
return (
<div className="text" dangerouslySetInnerHTML={{ __html: text }} />
<div className="text">
<MessageBody text={text} />
</div>
);
}