Inhibit clicking on sender avatar in threads list (#9417)
This commit is contained in:
parent
17fce6ccb2
commit
ba5bd74ac8
1 changed files with 3 additions and 1 deletions
|
@ -1078,13 +1078,15 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
|
||||||
} else {
|
} else {
|
||||||
member = this.props.mxEvent.sender;
|
member = this.props.mxEvent.sender;
|
||||||
}
|
}
|
||||||
|
// In the ThreadsList view we use the entire EventTile as a click target to open the thread instead
|
||||||
|
const viewUserOnClick = this.context.timelineRenderingType !== TimelineRenderingType.ThreadsList;
|
||||||
avatar = (
|
avatar = (
|
||||||
<div className="mx_EventTile_avatar">
|
<div className="mx_EventTile_avatar">
|
||||||
<MemberAvatar
|
<MemberAvatar
|
||||||
member={member}
|
member={member}
|
||||||
width={avatarSize}
|
width={avatarSize}
|
||||||
height={avatarSize}
|
height={avatarSize}
|
||||||
viewUserOnClick={true}
|
viewUserOnClick={viewUserOnClick}
|
||||||
forceHistorical={this.props.mxEvent.getType() === EventType.RoomMember}
|
forceHistorical={this.props.mxEvent.getType() === EventType.RoomMember}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue