diff --git a/src/components/views/avatars/RoomAvatar.js b/src/components/views/avatars/RoomAvatar.js index 506bd87adc8..38f088238ff 100644 --- a/src/components/views/avatars/RoomAvatar.js +++ b/src/components/views/avatars/RoomAvatar.js @@ -137,11 +137,6 @@ module.exports = React.createClass({ const avatarUrl = this.props.room.getAvatarUrl( MatrixClientPeg.get().getHomeserverUrl(), null, null, null, false); - - if (!avatarUrl) { - return; - } - const ImageView = sdk.getComponent("elements.ImageView"); const params = { src: avatarUrl, @@ -163,7 +158,8 @@ module.exports = React.createClass({ + onClick={this.props.viewAvatarOnClick ? this.onRoomAvatarClick : null} + disabled={!this.state.urls[0]} /> ); }, });