Merge pull request #2314 from aaronraimist/empty-url-empty-lightbox

Fix empty lightbox when there is no avatarUrl
pull/21833/head
Travis Ralston 2019-01-31 21:40:35 -07:00 committed by GitHub
commit 0ecaa2eb8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,8 @@ module.exports = React.createClass({
<BaseAvatar {...otherProps} name={roomName}
idName={room ? room.roomId : null}
urls={this.state.urls}
onClick={this.props.viewAvatarOnClick ? this.onRoomAvatarClick : null} />
onClick={this.props.viewAvatarOnClick ? this.onRoomAvatarClick : null}
disabled={!this.state.urls[0]} />
);
},
});