fix deeply irritating react warning about viewAvatarOnClick on BaseAvatar

pull/21833/head
Matthew Hodgson 2018-05-05 23:25:50 +01:00
parent af5be5c36c
commit 500f58a963
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ module.exports = React.createClass({
render: function() {
const BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
const {room, oobData, ...otherProps} = this.props;
const {room, oobData, viewAvatarOnClick, ...otherProps} = this.props;
const roomName = room ? room.name : oobData.name;