mirror of https://github.com/vector-im/riot-web
Handle lack of room directory visibility response
parent
dd529791fb
commit
9a72e69a43
|
@ -150,7 +150,7 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
MatrixClientPeg.get().getRoomDirectoryVisibility(
|
MatrixClientPeg.get().getRoomDirectoryVisibility(
|
||||||
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";
|
this._originalIsRoomPublished = result.visibility === "public";
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
|
|
Loading…
Reference in New Issue