Notify MatrixChat of teamToken after login

This commit is contained in:
Luke Barnard 2017-02-23 16:30:26 +00:00
parent fd3c1ab9e1
commit e1a40a8ef0
2 changed files with 18 additions and 2 deletions

View file

@ -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(