Fix rooms we don't have any info about
This commit is contained in:
parent
9085a2a866
commit
10b1b6443d
1 changed files with 3 additions and 3 deletions
|
@ -229,10 +229,10 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var roomName;
|
var roomName = 'Join Room';
|
||||||
if (this.props.oobData && this.props.oobData.name) {
|
if (this.props.oobData && this.props.oobData.name) {
|
||||||
roomName = this.props.oobData.name;
|
roomName = this.props.oobData.name;
|
||||||
} else {
|
} else if (this.props.room) {
|
||||||
this.props.room.name;
|
this.props.room.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -278,7 +278,7 @@ module.exports = React.createClass({
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else {
|
else if (this.props.room || (this.props.oobData && this.props.oobData.name)) {
|
||||||
roomAvatar = (
|
roomAvatar = (
|
||||||
<div onClick={this.props.onSettingsClick}>
|
<div onClick={this.props.onSettingsClick}>
|
||||||
<RoomAvatar room={this.props.room} width={48} height={48} oobData={this.props.oobData} />
|
<RoomAvatar room={this.props.room} width={48} height={48} oobData={this.props.oobData} />
|
||||||
|
|
Loading…
Reference in a new issue