Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Disable clicking on room icon in a better way
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Raimist <[email protected]>
  • Loading branch information
aaronraimist committed Jan 29, 2019
1 parent 53947be commit cd11d07
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/views/avatars/RoomAvatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,6 @@ module.exports = React.createClass({
MatrixClientPeg.get().getHomeserverUrl(),
null, null, null, false);

if (!avatarUrl) {
return;
}

const ImageView = sdk.getComponent("elements.ImageView");
const params = {
src: avatarUrl,
Expand All @@ -163,7 +159,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]} />
);
},
});

0 comments on commit cd11d07

Please sign in to comment.