You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
fix ability to save room settings if you don't have ops
This commit is contained in:
@@ -56,7 +56,7 @@ module.exports = React.createClass({
|
|||||||
tags_changed: false,
|
tags_changed: false,
|
||||||
tags: tags,
|
tags: tags,
|
||||||
areNotifsMuted: areNotifsMuted,
|
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
|
this.props.room.roomId
|
||||||
).done((result) => {
|
).done((result) => {
|
||||||
this.setState({ isRoomPublished: result.visibility === "public" });
|
this.setState({ isRoomPublished: result.visibility === "public" });
|
||||||
|
this._originalIsRoomPublished = result.visibility === "public";
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
console.error("Failed to get room visibility: " + err);
|
console.error("Failed to get room visibility: " + err);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user