fix(EventTile): commited suggestions

pull/21833/head
Arsh Sharma 2020-11-26 17:18:11 +05:30
parent 5e239690da
commit 8386e50240
1 changed files with 4 additions and 4 deletions

View File

@ -747,11 +747,11 @@ export default class EventTile extends React.Component {
if (this.props.mxEvent.sender && avatarSize) {
let member;
// set member to receiver (target) if it is a 3PID invite
// so that the correct avatar is show
// so that the correct avatar is shown
if (this.props.mxEvent.getContent().third_party_invite) {
member=this.props.mxEvent.target;
member = this.props.mxEvent.target;
} else {
member=this.props.mxEvent.sender;
member = this.props.mxEvent.sender;
}
avatar = (
<div className="mx_EventTile_avatar">
@ -760,7 +760,7 @@ export default class EventTile extends React.Component {
viewUserOnClick={true}
/>
</div>
);
);
}
if (needsSenderProfile) {