diff --git a/src/components/views/avatars/RoomAvatar.js b/src/components/views/avatars/RoomAvatar.js index e547cf0fa7..ef69bcb60a 100644 --- a/src/components/views/avatars/RoomAvatar.js +++ b/src/components/views/avatars/RoomAvatar.js @@ -66,7 +66,8 @@ module.exports = React.createClass({ }, onRoomStateEvents: function(ev) { - if (ev.getRoomId() !== this.props.room.roomId || + if (!this.props.room || + ev.getRoomId() !== this.props.room.roomId || ev.getType() !== 'm.room.avatar' ) return;