]> Untitled Git - lemmy-ui.git/commitdiff
Logging out user on account deletion. Fixes #84
authorDessalines <tyhou13@gmx.com>
Mon, 30 Nov 2020 20:28:00 +0000 (14:28 -0600)
committerDessalines <tyhou13@gmx.com>
Mon, 30 Nov 2020 20:28:00 +0000 (14:28 -0600)
src/shared/components/user.tsx

index 8f593cc97b17bac96b7a488ba999786e880a34c3..b03d9ddd92213f3d40782017ea4d6285745ea083 100644 (file)
@@ -1059,6 +1059,7 @@ export class User extends Component<any, UserState> {
     i.setState(i.state);
 
     WebSocketService.Instance.deleteAccount(i.state.deleteAccountForm);
+    i.handleLogoutClick(i);
   }
 
   setUserInfo() {