mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 09:46:09 +03:00
Inline display name into return
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
8174973cfe
commit
e260e8671f
1 changed files with 3 additions and 7 deletions
|
@ -118,12 +118,6 @@ export default class SenderProfile extends React.Component<IProps, IState> {
|
|||
return null; // emote message must include the name so don't duplicate it
|
||||
}
|
||||
|
||||
const displayNameElement = (
|
||||
<span className={`mx_SenderProfile_displayName ${colorClass}`}>
|
||||
{ displayName }
|
||||
</span>
|
||||
);
|
||||
|
||||
let mxidElement;
|
||||
if (disambiguate) {
|
||||
mxidElement = (
|
||||
|
@ -147,7 +141,9 @@ export default class SenderProfile extends React.Component<IProps, IState> {
|
|||
|
||||
return (
|
||||
<div className="mx_SenderProfile mx_SenderProfile_hover" dir="auto" onClick={this.props.onClick}>
|
||||
{ displayNameElement }
|
||||
<span className={`mx_SenderProfile_displayName ${colorClass}`}>
|
||||
{ displayName }
|
||||
</span>
|
||||
{ mxidElement }
|
||||
{ flair }
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue