Handle lack of room directory visibility response

pull/21833/head
Luke Barnard 2018-02-28 16:14:18 +00:00
parent dd529791fb
commit 9a72e69a43
1 changed files with 1 additions and 1 deletions

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) => {