Guard onLoggedIn since registration uses it too and that isn't done yet
This commit is contained in:
parent
b8d579ac5c
commit
900b7dd94a
1 changed files with 7 additions and 5 deletions
|
@ -294,11 +294,13 @@ module.exports = {
|
|||
},
|
||||
|
||||
onLoggedIn: function(credentials) {
|
||||
if (credentials) { // registration doesn't do this yet
|
||||
console.log("onLoggedIn => %s", credentials.userId);
|
||||
MatrixClientPeg.replaceUsingAccessToken(
|
||||
credentials.homeserverUrl, credentials.identityServerUrl,
|
||||
credentials.userId, credentials.accessToken
|
||||
);
|
||||
}
|
||||
this.setState({
|
||||
screen: undefined,
|
||||
logged_in: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue