View /home on registered /w team
This commit is contained in:
parent
a5a43bcd93
commit
4ac769168a
1 changed files with 3 additions and 0 deletions
|
@ -227,6 +227,9 @@ module.exports = React.createClass({
|
||||||
const teamToken = data.team_token;
|
const teamToken = data.team_token;
|
||||||
// Store for use /w welcome pages
|
// Store for use /w welcome pages
|
||||||
window.localStorage.setItem('mx_team_token', teamToken);
|
window.localStorage.setItem('mx_team_token', teamToken);
|
||||||
|
// Set the team token and view homepage
|
||||||
|
window.matrixChat._teamToken = teamToken;
|
||||||
|
window.mxDispatcher.dispatch({action: 'view_home_page'});
|
||||||
|
|
||||||
self._rtsClient.getTeam(teamToken).then((team) => {
|
self._rtsClient.getTeam(teamToken).then((team) => {
|
||||||
console.log(
|
console.log(
|
||||||
|
|
Loading…
Reference in a new issue