Add emojification to contact names shown in quotes

pull/1/head
Scott Nonnenberg 8 years ago
parent 548c8e69cf
commit 23586be6b0

@ -4,6 +4,7 @@ import classnames from 'classnames';
import * as MIME from '../../../ts/types/MIME'; import * as MIME from '../../../ts/types/MIME';
import * as GoogleChrome from '../../../ts/util/GoogleChrome'; import * as GoogleChrome from '../../../ts/util/GoogleChrome';
import { Emojify } from './Emojify';
import { MessageBody } from './MessageBody'; import { MessageBody } from './MessageBody';
interface Props { interface Props {
@ -195,7 +196,9 @@ export class Quote extends React.Component<Props, {}> {
} = this.props; } = this.props;
const authorProfileElement = authorProfileName ? ( const authorProfileElement = authorProfileName ? (
<span className="profile-name">~{authorProfileName}</span> <span className="profile-name">
~<Emojify text={authorProfileName} />
</span>
) : null; ) : null;
return ( return (
@ -204,7 +207,7 @@ export class Quote extends React.Component<Props, {}> {
i18n('you') i18n('you')
) : ( ) : (
<span> <span>
{authorTitle} {authorProfileElement} <Emojify text={authorTitle} /> {authorProfileElement}
</span> </span>
)} )}
</div> </div>

Loading…
Cancel
Save