Handle lack of room directory visibility response

This commit is contained in:
Luke Barnard 2018-02-28 16:14:18 +00:00
parent dd529791fb
commit 9a72e69a43

View File

@ -150,7 +150,7 @@ module.exports = React.createClass({
MatrixClientPeg.get().getRoomDirectoryVisibility(
this.props.room.roomId,
).done((result) => {
).done((result = {}) => {
this.setState({ isRoomPublished: result.visibility === "public" });
this._originalIsRoomPublished = result.visibility === "public";
}, (err) => {