1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

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

View File

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