mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 09:15:16 +00:00
Check error to see if it's actually a failure to peek
This commit is contained in:
@@ -177,11 +177,15 @@ module.exports = React.createClass({
|
|||||||
roomProm.then((room) => {
|
roomProm.then((room) => {
|
||||||
this._calculatePeekRules(room);
|
this._calculatePeekRules(room);
|
||||||
return this._initTimeline(this.props);
|
return this._initTimeline(this.props);
|
||||||
}).catch(() => {
|
}).catch((err) => {
|
||||||
// This is fine: the room just isn't peekable (we assume).
|
if (err.errcode == "M_GUEST_ACCESS_FORBIDDEN") {
|
||||||
this.setState({
|
// This is fine: the room just isn't peekable (we assume).
|
||||||
timelineLoading: false,
|
this.setState({
|
||||||
});
|
timelineLoading: false,
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
}).done();
|
}).done();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user