mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Merge pull request #678 from matrix-org/luke/rts-fix-undefined-team-token
Do not set team_token if not returned by RTS on login
This commit is contained in:
commit
f1288d85ba
@ -270,7 +270,9 @@ export function setLoggedIn(credentials) {
|
||||
|
||||
if (rtsClient) {
|
||||
rtsClient.login(credentials.userId).then((body) => {
|
||||
localStorage.setItem("mx_team_token", body.team_token);
|
||||
if (body.team_token) {
|
||||
localStorage.setItem("mx_team_token", body.team_token);
|
||||
}
|
||||
}, (err) =>{
|
||||
console.error(
|
||||
"Failed to get team token on login, not persisting to localStorage",
|
||||
|
Loading…
Reference in New Issue
Block a user