Replace view_set_mxid with require_registration

To put all the other flows through the to-ilag-or-not-to-ilag flow
This commit is contained in:
David Baker 2018-09-05 18:08:49 +01:00
parent a042f4d0af
commit 27fa21e403
9 changed files with 11 additions and 11 deletions

View file

@ -354,7 +354,7 @@ module.exports = React.createClass({
// to the directory.
if (MatrixClientPeg.get().isGuest()) {
if (!room.world_readable && !room.guest_can_join) {
dis.dispatch({action: 'view_set_mxid'});
dis.dispatch({action: 'require_registration'});
return;
}
}