Move to react for newlines, emoji, and links in message body
This commit is contained in:
parent
721935b0c8
commit
4e5c8965ff
15 changed files with 400 additions and 29 deletions
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue