mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Guard onLoggedIn since registration uses it too and that isn't done yet
This commit is contained in:
parent
b8d579ac5c
commit
900b7dd94a
@ -294,11 +294,13 @@ module.exports = {
|
||||
},
|
||||
|
||||
onLoggedIn: function(credentials) {
|
||||
console.log("onLoggedIn => %s", credentials.userId);
|
||||
MatrixClientPeg.replaceUsingAccessToken(
|
||||
credentials.homeserverUrl, credentials.identityServerUrl,
|
||||
credentials.userId, credentials.accessToken
|
||||
);
|
||||
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…
Reference in New Issue
Block a user