Merge pull request #2895 from matrix-org/travis/return-client

Always return a client from onRegistered
This commit is contained in:
Travis Ralston 2019-04-09 09:06:33 -06:00 committed by GitHub
commit 12a9416741
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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