You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-25 17:02:04 +03:00
Notify MatrixChat of teamToken after login
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user