Skip to content

Commit

Permalink
update unread notifications when logging in
Browse files Browse the repository at this point in the history
  • Loading branch information
biosfood committed Oct 24, 2023
1 parent 5c71475 commit 377beee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shared/components/home/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { HtmlTags } from "../common/html-tags";
import { Spinner } from "../common/icon";
import PasswordInput from "../common/password-input";
import TotpModal from "../common/totp-modal";
import { UnreadCounterService } from "../../services";

interface LoginProps {
prev?: string;
Expand Down Expand Up @@ -55,6 +56,8 @@ async function handleLoginSuccess(i: Login, loginRes: LoginResponse) {
: i.props.history.action === "PUSH"
? i.props.history.back()
: i.props.history.replace("/");

UnreadCounterService.Instance.updateAll();
}

async function handleLoginSubmit(i: Login, event: any) {
Expand Down

0 comments on commit 377beee

Please sign in to comment.