diff options
author | Dessalines <tyhou13@gmx.com> | 2020-01-31 22:34:08 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-01-31 22:34:08 -0500 |
commit | 8ec104cb762f58e83fde262ee25c23ddf49730bf (patch) | |
tree | 880fd0f56ac033ade8e70825f808d82c22dc4d93 /ui/src/components/login.tsx | |
parent | 8036474ddad2f20c27a2fb023395306d6b9e577d (diff) |
Mostly done eliminating recurring fetches.
Diffstat (limited to 'ui/src/components/login.tsx')
-rw-r--r-- | ui/src/components/login.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/src/components/login.tsx b/ui/src/components/login.tsx index 64687a3d..b65b7a83 100644 --- a/ui/src/components/login.tsx +++ b/ui/src/components/login.tsx @@ -306,6 +306,7 @@ export class Login extends Component<any, State> { this.state = this.emptyState; this.setState(this.state); UserService.Instance.login(data); + WebSocketService.Instance.userJoin(); toast(i18n.t('logged_in')); this.props.history.push('/'); } else if (res.op == UserOperation.Register) { @@ -313,6 +314,7 @@ export class Login extends Component<any, State> { this.state = this.emptyState; this.setState(this.state); UserService.Instance.login(data); + WebSocketService.Instance.userJoin(); this.props.history.push('/communities'); } else if (res.op == UserOperation.PasswordReset) { toast(i18n.t('reset_password_mail_sent')); |