Merge pull request #1013 from matrix-org/dbkr/fix_3pid_invite_pwlu

Fix accepting a 3pid invite
pull/21833/head
David Baker 2017-06-02 16:33:13 +01:00 committed by GitHub
commit 792f825ea9
1 changed files with 3 additions and 1 deletions

View File

@ -764,11 +764,13 @@ module.exports = React.createClass({
// If the user is a ROU, allow them to transition to a PWLU
if (cli && cli.isGuest()) {
// Join this room once the user has registered and logged in
const signUrl = this.props.thirdPartyInvite ?
this.props.thirdPartyInvite.inviteSignUrl : undefined;
dis.dispatch({
action: 'do_after_sync_prepared',
deferred_action: {
action: 'join_room',
room_id: this.state.roomId,
opts: { inviteSignUrl: signUrl },
},
});