Disable clicking on room icon in a better way
Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
parent
53947bee35
commit
52ebba9d3e
1 changed files with 2 additions and 6 deletions
|
@ -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({
|
|||
<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]} />
|
||||
);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue