mirror of https://github.com/vector-im/riot-web
small simplification in code as `.getContent()` will always return an object
parent
54c69b4630
commit
422d4cd73a
|
@ -112,8 +112,7 @@ module.exports = createReactClass({
|
|||
onJoinRule: function(ev) {
|
||||
if (ev.getType() !== "m.room.join_rules") return;
|
||||
if (ev.getRoomId() !== this.props.room.roomId) return;
|
||||
const joinRule = (ev.getContent() || {}).join_rule;
|
||||
this.setState({ joinRule });
|
||||
this.setState({ joinRule: ev.getContent().join_rule });
|
||||
},
|
||||
|
||||
onAccountData: function(accountDataEvent) {
|
||||
|
|
Loading…
Reference in New Issue