Merge remote-tracking branch 'origin/develop' into develop

pull/21833/head
Weblate 2018-01-17 23:28:22 +00:00
commit 9e987337b7
1 changed files with 2 additions and 2 deletions

View File

@ -857,8 +857,8 @@ module.exports = withMatrixClient(React.createClass({
}
const room = this.props.matrixClient.getRoom(this.props.member.roomId);
const poweLevelEvent = room ? room.currentState.getStateEvents("m.room.power_levels", "") : null;
const powerLevelUsersDefault = poweLevelEvent.getContent().users_default;
const powerLevelEvent = room ? room.currentState.getStateEvents("m.room.power_levels", "") : null;
const powerLevelUsersDefault = powerLevelEvent ? powerLevelEvent.getContent().users_default : 0;
let roomMemberDetails = null;
if (this.props.member.roomId) { // is in room