Allow guests to view individual groups
For homeservers that still disallow guests (running synapse without https://github.com/matrix-org/synapse/pull/2715), start ILAG.
This commit is contained in:
parent
bbaa46f773
commit
1a3ad5a342
2 changed files with 12 additions and 1 deletions
|
@ -495,7 +495,19 @@ export default React.createClass({
|
||||||
this._onEditClick();
|
this._onEditClick();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
let willDoOnboarding = false;
|
||||||
this._groupStore.on('error', (err) => {
|
this._groupStore.on('error', (err) => {
|
||||||
|
if (err.errcode === 'M_GUEST_ACCESS_FORBIDDEN' && !willDoOnboarding) {
|
||||||
|
dis.dispatch({
|
||||||
|
action: 'do_after_sync_prepared',
|
||||||
|
deferred_action: {
|
||||||
|
action: 'view_group',
|
||||||
|
group_id: groupId,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
dis.dispatch({action: 'view_set_mxid'});
|
||||||
|
willDoOnboarding = true;
|
||||||
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
summary: null,
|
summary: null,
|
||||||
error: err,
|
error: err,
|
||||||
|
|
|
@ -82,7 +82,6 @@ const ONBOARDING_FLOW_STARTERS = [
|
||||||
'view_create_chat',
|
'view_create_chat',
|
||||||
'view_create_room',
|
'view_create_room',
|
||||||
'view_my_groups',
|
'view_my_groups',
|
||||||
'view_group',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
|
|
Loading…
Reference in a new issue