Always return a client from onRegistered

Fixes https://github.com/vector-im/riot-web/issues/9406

The return value of onRegistered eventually ends up in the pusher setup, which means we were passing undefined through the stack.
pull/21833/head
Travis Ralston 2019-04-08 12:49:14 -06:00
parent 054011f5f8
commit 7407950c75
1 changed files with 1 additions and 1 deletions

View File

@ -1772,7 +1772,7 @@ export default React.createClass({
hasCancelButton: false,
});
return;
return MatrixClientPeg.get();
}
}
return Lifecycle.setLoggedIn(credentials);