negate for less indentation

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-01-05 11:11:20 +00:00
parent f67d405732
commit a473971c7b
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -445,7 +445,11 @@ module.exports = withMatrixClient(React.createClass({
const powerLevelEvent = room.currentState.getStateEvents("m.room.power_levels", "");
if (!powerLevelEvent) return;
if (powerLevelEvent.getContent().users) {
if (!powerLevelEvent.getContent().users) {
this._applyPowerChange(roomId, target, powerLevel, powerLevelEvent);
return;
}
const myUserId = this.props.matrixClient.getUserId();
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
@ -485,8 +489,6 @@ module.exports = withMatrixClient(React.createClass({
});
return;
}
}
this._applyPowerChange(roomId, target, powerLevel, powerLevelEvent);
},