1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-17 17:42:41 +03:00

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

Co-Authored-By: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Z. E. Cat
2020-01-10 17:33:37 +00:00
committed by GitHub
parent bebfd60daf
commit fb587cc62c

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.event && joinRules.event.content && joinRules.event.content.join_rule;
const joinRule = joinRules && joinRules.getContent() && joinRules.getContent().join_rule;
return ({
joinRule,