fix(EventTile): made revisions
parent
f271e117cf
commit
5e239690da
|
@ -745,26 +745,22 @@ export default class EventTile extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.props.mxEvent.sender && avatarSize) {
|
if (this.props.mxEvent.sender && avatarSize) {
|
||||||
if(this.props.mxEvent.getType()==='m.room.third_party_invite') {
|
let member;
|
||||||
avatar = (
|
// set member to receiver (target) if it is a 3PID invite
|
||||||
<div className="mx_EventTile_avatar">
|
// so that the correct avatar is show
|
||||||
<MemberAvatar member={this.props.mxEvent.target}
|
if (this.props.mxEvent.getContent().third_party_invite) {
|
||||||
width={avatarSize} height={avatarSize}
|
member=this.props.mxEvent.target;
|
||||||
viewUserOnClick={true}
|
} else {
|
||||||
/>
|
member=this.props.mxEvent.sender;
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
avatar = (
|
|
||||||
<div className="mx_EventTile_avatar">
|
|
||||||
<MemberAvatar member={this.props.mxEvent.sender}
|
|
||||||
width={avatarSize} height={avatarSize}
|
|
||||||
viewUserOnClick={true}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
avatar = (
|
||||||
|
<div className="mx_EventTile_avatar">
|
||||||
|
<MemberAvatar member={member}
|
||||||
|
width={avatarSize} height={avatarSize}
|
||||||
|
viewUserOnClick={true}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (needsSenderProfile) {
|
if (needsSenderProfile) {
|
||||||
|
|
Loading…
Reference in New Issue