mirror of https://github.com/vector-im/riot-web
fix variable clash
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
9ef83b8dc0
commit
827c38d4a5
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue