]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/components/person/inbox.tsx
Redirect to login and remove duplicated code
[lemmy-ui.git] / src / shared / components / person / inbox.tsx
index 10af488e6ad4c5b9eba3bb63548f8bf5e0d99d96..3c3e9484db5de5dfd6d8ced0547211750377dd5e 100644 (file)
@@ -111,11 +111,6 @@ export class Inbox extends Component<any, InboxState> {
     this.handleSortChange = this.handleSortChange.bind(this);
     this.handlePageChange = this.handlePageChange.bind(this);
 
-    if (!UserService.Instance.myUserInfo && isBrowser()) {
-      toast(i18n.t("not_logged_in"), "danger");
-      this.context.router.history.push(`/login`);
-    }
-
     this.parseMessage = this.parseMessage.bind(this);
     this.subscription = wsSubscribe(this.parseMessage);