use getContent() instead
This commit is contained in:
parent
fb587cc62c
commit
fbabe79647
1 changed files with 2 additions and 3 deletions
|
@ -115,10 +115,9 @@ module.exports = createReactClass({
|
|||
const { event: { type, room_id } } = ev;
|
||||
if (type !== "m.room.join_rules") return;
|
||||
if (room_id !== this.props.room.roomId) return;
|
||||
if ( !event.content ) return;
|
||||
const { event: { content: { join_rule } } } = ev;
|
||||
this.setState({ joinRule: join_rule });
|
||||
/* eslint-enable camelcase */
|
||||
const joinRule = event.getContent().join_rule;
|
||||
this.setState({ joinRule });
|
||||
},
|
||||
|
||||
onAccountData: function(accountDataEvent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue