Update src/components/views/rooms/RoomTile.js

Co-Authored-By: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Z. E. Cat 2020-01-10 17:36:33 +00:00 committed by GitHub
parent fbabe79647
commit 1b75909cad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,