Skip to content

Commit

Permalink
clarify the meaning of UnreadCounterService.updateInboxCounts
Browse files Browse the repository at this point in the history
  • Loading branch information
biosfood committed Oct 24, 2023
1 parent 21f61de commit 1c1d1c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/shared/components/person/inbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ export class Inbox extends Component<any, InboxState> {
limit,
}),
});
UnreadCounterService.Instance.updatePrivateMessages();
UnreadCounterService.Instance.updateInboxCounts();
}

async handleSortChange(val: CommentSortType) {
Expand Down
4 changes: 2 additions & 2 deletions src/shared/services/UnreadCounterService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down Expand Up @@ -90,7 +90,7 @@ export class UnreadCounterService {
}

public updateAll = async () => {
this.updatePrivateMessages();
this.updateInboxCounts();
this.updateReports();
this.updateApplications();
};
Expand Down

0 comments on commit 1c1d1c1

Please sign in to comment.