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.
This commit is contained in:
parent
054011f5f8
commit
7407950c75
1 changed files with 1 additions and 1 deletions
|
@ -1772,7 +1772,7 @@ export default React.createClass({
|
|||
hasCancelButton: false,
|
||||
});
|
||||
|
||||
return;
|
||||
return MatrixClientPeg.get();
|
||||
}
|
||||
}
|
||||
return Lifecycle.setLoggedIn(credentials);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue