mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-18 21:11:25 +02:00
Reorder
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
4185185cdc
commit
b39c615abc
@ -118,18 +118,6 @@ export default class SenderProfile extends React.Component<IProps, IState> {
|
|||||||
return null; // emote message must include the name so don't duplicate it
|
return null; // emote message must include the name so don't duplicate it
|
||||||
}
|
}
|
||||||
|
|
||||||
let flair;
|
|
||||||
if (this.props.enableFlair) {
|
|
||||||
const displayedGroups = this._getDisplayedGroups(
|
|
||||||
this.state.userGroups, this.state.relatedGroups,
|
|
||||||
);
|
|
||||||
|
|
||||||
flair = <Flair key='flair'
|
|
||||||
userId={mxEvent.getSender()}
|
|
||||||
groups={displayedGroups}
|
|
||||||
/>;
|
|
||||||
}
|
|
||||||
|
|
||||||
const displayNameElement = (
|
const displayNameElement = (
|
||||||
<span className={`mx_SenderProfile_displayName ${colorClass}`}>
|
<span className={`mx_SenderProfile_displayName ${colorClass}`}>
|
||||||
{ displayName }
|
{ displayName }
|
||||||
@ -145,6 +133,18 @@ export default class SenderProfile extends React.Component<IProps, IState> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let flair;
|
||||||
|
if (this.props.enableFlair) {
|
||||||
|
const displayedGroups = this._getDisplayedGroups(
|
||||||
|
this.state.userGroups, this.state.relatedGroups,
|
||||||
|
);
|
||||||
|
|
||||||
|
flair = <Flair key='flair'
|
||||||
|
userId={mxEvent.getSender()}
|
||||||
|
groups={displayedGroups}
|
||||||
|
/>;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_SenderProfile mx_SenderProfile_hover" dir="auto" onClick={this.props.onClick}>
|
<div className="mx_SenderProfile mx_SenderProfile_hover" dir="auto" onClick={this.props.onClick}>
|
||||||
{ displayNameElement }
|
{ displayNameElement }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user