diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js index f17ec98d9a..cc77bf5b3d 100644 --- a/src/components/views/rooms/RoomTile.js +++ b/src/components/views/rooms/RoomTile.js @@ -58,7 +58,7 @@ module.exports = createReactClass({ getInitialState: function() { // eslint-disable-next-line camelcase const joinRules = this.props.room.currentState.getStateEvents("m.room.join_rules", ""); - const joinRule = joinRules && joinRules.getContent() && joinRules.getContent().join_rule; + const joinRule = joinRules && joinRules.getContent().join_rule; return ({ joinRule,