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

pull/28217/head
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
1 changed files with 3 additions and 1 deletions

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>