negate for less indentation
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
f67d405732
commit
a473971c7b
1 changed files with 40 additions and 38 deletions
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue