Fix RoomAvatar viewAvatarOnClick to work on actual avatars instead of default ones

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-07-12 18:24:28 +01:00
parent 31f1fbd962
commit 3f51bb84e1
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ export default class RoomAvatar extends React.Component<IProps, IState> {
<BaseAvatar {...otherProps} name={roomName}
idName={room ? room.roomId : null}
urls={this.state.urls}
onClick={this.props.viewAvatarOnClick && !this.state.urls[0] ? this.onRoomAvatarClick : null}
onClick={this.props.viewAvatarOnClick && this.state.urls[0] ? this.onRoomAvatarClick : null}
/>
);
}