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) {
|
onLoggedIn: function(credentials) {
|
||||||
console.log("onLoggedIn => %s", credentials.userId);
|
if (credentials) { // registration doesn't do this yet
|
||||||
MatrixClientPeg.replaceUsingAccessToken(
|
console.log("onLoggedIn => %s", credentials.userId);
|
||||||
credentials.homeserverUrl, credentials.identityServerUrl,
|
MatrixClientPeg.replaceUsingAccessToken(
|
||||||
credentials.userId, credentials.accessToken
|
credentials.homeserverUrl, credentials.identityServerUrl,
|
||||||
);
|
credentials.userId, credentials.accessToken
|
||||||
|
);
|
||||||
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
screen: undefined,
|
screen: undefined,
|
||||||
logged_in: true
|
logged_in: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue