Add emojification to contact names shown in quotes
This commit is contained in:
parent
548c8e69cf
commit
23586be6b0
1 changed files with 5 additions and 2 deletions
|
@ -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 {
|
||||
|
@ -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 (
|
||||
|
@ -204,7 +207,7 @@ export class Quote extends React.Component<Props, {}> {
|
|||
i18n('you')
|
||||
) : (
|
||||
<span>
|
||||
{authorTitle} {authorProfileElement}
|
||||
<Emojify text={authorTitle} /> {authorProfileElement}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue