Inhibit clicking on sender avatar in threads list (#9417)

This commit is contained in:
Michael Telatynski 2022-10-14 12:48:17 +01:00 committed by GitHub
parent 17fce6ccb2
commit ba5bd74ac8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1078,13 +1078,15 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
} else {
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 = (
<div className="mx_EventTile_avatar">
<MemberAvatar
member={member}
width={avatarSize}
height={avatarSize}
viewUserOnClick={true}
viewUserOnClick={viewUserOnClick}
forceHistorical={this.props.mxEvent.getType() === EventType.RoomMember}
/>
</div>