fix ability to save room settings if you don't have ops
This commit is contained in:
parent
f9c7ae1ab9
commit
bf1e0da598
1 changed files with 9 additions and 8 deletions
|
@ -56,7 +56,7 @@ module.exports = React.createClass({
|
|||
tags_changed: false,
|
||||
tags: tags,
|
||||
areNotifsMuted: areNotifsMuted,
|
||||
// isRoomPublished: // set in componentWillMount
|
||||
isRoomPublished: this._originalIsRoomPublished, // loaded async in componentWillMount
|
||||
};
|
||||
},
|
||||
|
||||
|
@ -65,6 +65,7 @@ module.exports = React.createClass({
|
|||
this.props.room.roomId
|
||||
).done((result) => {
|
||||
this.setState({ isRoomPublished: result.visibility === "public" });
|
||||
this._originalIsRoomPublished = result.visibility === "public";
|
||||
}, (err) => {
|
||||
console.error("Failed to get room visibility: " + err);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue