mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:35:04 +08:00
fix(EventTile): conditionally added avatar
This commit is contained in:
parent
2144932bbc
commit
f271e117cf
@ -745,14 +745,26 @@ export default class EventTile extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.props.mxEvent.sender && avatarSize) {
|
if (this.props.mxEvent.sender && avatarSize) {
|
||||||
avatar = (
|
if(this.props.mxEvent.getType()==='m.room.third_party_invite') {
|
||||||
|
avatar = (
|
||||||
<div className="mx_EventTile_avatar">
|
<div className="mx_EventTile_avatar">
|
||||||
<MemberAvatar member={this.props.mxEvent.sender}
|
<MemberAvatar member={this.props.mxEvent.target}
|
||||||
width={avatarSize} height={avatarSize}
|
width={avatarSize} height={avatarSize}
|
||||||
viewUserOnClick={true}
|
viewUserOnClick={true}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
avatar = (
|
||||||
|
<div className="mx_EventTile_avatar">
|
||||||
|
<MemberAvatar member={this.props.mxEvent.sender}
|
||||||
|
width={avatarSize} height={avatarSize}
|
||||||
|
viewUserOnClick={true}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (needsSenderProfile) {
|
if (needsSenderProfile) {
|
||||||
|
Loading…
Reference in New Issue
Block a user