lint
parent
5551b207c1
commit
808785c2f8
|
@ -56,7 +56,9 @@ module.exports = createReactClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
const { event: { content: { join_rule } } } = this.props.room.currentState.getStateEvents("m.room.join_rules", "");
|
// eslint-disable-next-line camelcase
|
||||||
|
const { event: { content: { join_rule } } } =
|
||||||
|
this.props.room.currentState.getStateEvents("m.room.join_rules", "");
|
||||||
|
|
||||||
return ({
|
return ({
|
||||||
join_rule,
|
join_rule,
|
||||||
|
@ -108,11 +110,13 @@ module.exports = createReactClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onJoinRule: function(ev) {
|
onJoinRule: function(ev) {
|
||||||
|
/* eslint-disable camelcase */
|
||||||
const { event: { type, room_id } } = ev;
|
const { event: { type, room_id } } = ev;
|
||||||
if (type !== "m.room.join_rules") return;
|
if (type !== "m.room.join_rules") return;
|
||||||
if (room_id !== this.props.room.roomId) return;
|
if (room_id !== this.props.room.roomId) return;
|
||||||
const { event: { content: { join_rule } } } = ev;
|
const { event: { content: { join_rule } } } = ev;
|
||||||
this.setState({ join_rule });
|
this.setState({ join_rule });
|
||||||
|
/* eslint-enable camelcase */
|
||||||
},
|
},
|
||||||
|
|
||||||
onAccountData: function(accountDataEvent) {
|
onAccountData: function(accountDataEvent) {
|
||||||
|
|
Loading…
Reference in New Issue