Add support for specifying the screen after require_registration

Also use it in start chat and join group

Signed-off-by: Stuart Mumford <stuart@cadair.com>
This commit is contained in:
Stuart Mumford 2020-01-12 17:15:19 +00:00
parent 2c6045fe9f
commit 32eb2c13bf
No known key found for this signature in database
GPG key ID: 60BC5C03E6276769
3 changed files with 15 additions and 4 deletions

View file

@ -1008,6 +1008,11 @@ export default createReactClass({
// needs to be reset so that they can revisit /user/.. // (and trigger
// `_chatCreateOrReuse` again)
go_welcome_on_cancel: true,
screen_after: {screen: `user/${this.props.config.welcomeUserId}`,
params: {
action: 'chat'
}
}
});
return;
}