Read Receipts "Fall from the Sky" (#8414)
* fix: don't pass hideTitle to base avatar * fix: correctly position read receipt markers
This commit is contained in:
parent
942ca74316
commit
e718242912
2 changed files with 79 additions and 30 deletions
|
@ -107,8 +107,16 @@ export default class MemberAvatar extends React.PureComponent<IProps, IState> {
|
|||
}
|
||||
|
||||
render() {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
let { member, fallbackUserId, onClick, viewUserOnClick, forceHistorical, ...otherProps } = this.props;
|
||||
let {
|
||||
member,
|
||||
fallbackUserId,
|
||||
onClick,
|
||||
viewUserOnClick,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
forceHistorical,
|
||||
hideTitle,
|
||||
...otherProps
|
||||
} = this.props;
|
||||
const userId = member ? member.userId : fallbackUserId;
|
||||
|
||||
if (viewUserOnClick) {
|
||||
|
@ -125,7 +133,7 @@ export default class MemberAvatar extends React.PureComponent<IProps, IState> {
|
|||
<BaseAvatar
|
||||
{...otherProps}
|
||||
name={this.state.name}
|
||||
title={this.props.hideTitle ? undefined : this.state.title}
|
||||
title={hideTitle ? undefined : this.state.title}
|
||||
idName={userId}
|
||||
url={this.state.imageUrl}
|
||||
onClick={onClick}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue