fix variable clash

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2017-07-03 19:13:07 +01:00
parent 9ef83b8dc0
commit 827c38d4a5
No known key found for this signature in database
GPG Key ID: 0435A1D4BBD34D64
1 changed files with 2 additions and 2 deletions

View File

@ -216,8 +216,8 @@ module.exports = React.createClass({
const members = this.props.room ? this.props.room.getJoinedMembers() : undefined;
if (members) {
if (members.length === 1 && members[0].userId === MatrixClientPeg.get().credentials.userId) {
name = this.props.room.currentState.getStateEvents('m.room.name', '');
if (!name || !name.getContent().name) {
const nameEvent = this.props.room.currentState.getStateEvents('m.room.name', '');
if (!nameEvent || !nameEvent.getContent().name) {
settingsHint = true;
}
}