diff --git a/src/shared/components/person/inbox.tsx b/src/shared/components/person/inbox.tsx index 4cdba78b1..d1237e7b8 100644 --- a/src/shared/components/person/inbox.tsx +++ b/src/shared/components/person/inbox.tsx @@ -795,7 +795,7 @@ export class Inbox extends Component { limit, }), }); - UnreadCounterService.Instance.updatePrivateMessages(); + UnreadCounterService.Instance.updateInboxCounts(); } async handleSortChange(val: CommentSortType) { diff --git a/src/shared/services/UnreadCounterService.ts b/src/shared/services/UnreadCounterService.ts index aa7524be2..55b3902f8 100644 --- a/src/shared/services/UnreadCounterService.ts +++ b/src/shared/services/UnreadCounterService.ts @@ -46,7 +46,7 @@ export class UnreadCounterService { return true; } - public async updatePrivateMessages() { + public async updateInboxCounts() { if (this.shouldUpdate) { const unreadCountRes = await HttpService.client.getUnreadCount(); if (unreadCountRes.state === "success") { @@ -90,7 +90,7 @@ export class UnreadCounterService { } public updateAll = async () => { - this.updatePrivateMessages(); + this.updateInboxCounts(); this.updateReports(); this.updateApplications(); };