diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js index c358ef610d..11277daa57 100644 --- a/src/components/views/rooms/EventTile.js +++ b/src/components/views/rooms/EventTile.js @@ -745,13 +745,22 @@ 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 shown as the text is + // `$target accepted the invitation for $email` + if (this.props.mxEvent.getContent().third_party_invite) { + member = this.props.mxEvent.target; + } else { + member = this.props.mxEvent.sender; + } avatar = ( -
- -
+
+ +
); }