Skip to content

Commit

Permalink
Add emojification to contact names shown in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed May 23, 2018
1 parent 548c8e6 commit 23586be
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ts/components/conversation/Quote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import classnames from 'classnames';
import * as MIME from '../../../ts/types/MIME';
import * as GoogleChrome from '../../../ts/util/GoogleChrome';

import { Emojify } from './Emojify';
import { MessageBody } from './MessageBody';

interface Props {
Expand Down Expand Up @@ -195,7 +196,9 @@ export class Quote extends React.Component<Props, {}> {
} = this.props;

const authorProfileElement = authorProfileName ? (
<span className="profile-name">~{authorProfileName}</span>
<span className="profile-name">
~<Emojify text={authorProfileName} />
</span>
) : null;

return (
Expand All @@ -204,7 +207,7 @@ export class Quote extends React.Component<Props, {}> {
i18n('you')
) : (
<span>
{authorTitle} {authorProfileElement}
<Emojify text={authorTitle} /> {authorProfileElement}
</span>
)}
</div>
Expand Down

0 comments on commit 23586be

Please sign in to comment.