Notify MatrixChat of teamToken after login
This commit is contained in:
parent
fd3c1ab9e1
commit
e1a40a8ef0
2 changed files with 18 additions and 2 deletions
|
@ -304,6 +304,10 @@ export function setLoggedIn(credentials) {
|
|||
rtsClient.login(credentials.userId).then((body) => {
|
||||
if (body.team_token) {
|
||||
localStorage.setItem("mx_team_token", body.team_token);
|
||||
dis.dispatch({
|
||||
action: 'set_team_token',
|
||||
value: body.team_token,
|
||||
})
|
||||
}
|
||||
}, (err) =>{
|
||||
console.error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue