mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Do not set team_token if not returned by RTS on login
This commit is contained in:
parent
fe17e2452b
commit
260cb62438
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue