From fb587cc62c60851597723db440abe1af78ab091f Mon Sep 17 00:00:00 2001 From: "Z. E. Cat" Date: Fri, 10 Jan 2020 17:33:37 +0000 Subject: [PATCH] Update src/components/views/rooms/RoomTile.js Co-Authored-By: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/rooms/RoomTile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js index b904f9d437..f7c58f5c5a 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.event && joinRules.event.content && joinRules.event.content.join_rule; + const joinRule = joinRules && joinRules.getContent() && joinRules.getContent().join_rule; return ({ joinRule,