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(
|
||||
this.props.room.roomId,
|
||||
).done((result) => {
|
||||
).done((result = {}) => {
|
||||
this.setState({ isRoomPublished: result.visibility === "public" });
|
||||
this._originalIsRoomPublished = result.visibility === "public";
|
||||
}, (err) => {
|
||||
|
|
Loading…
Reference in New Issue