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

Fix empty lightbox when there is no avatarUrl
This commit is contained in:
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

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]} />
);
},
});