Skip to content

Commit

Permalink
fix: Unread chats are missing from LHN
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Oct 3, 2024
1 parent f12d016 commit e31e6f6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/libs/SidebarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,13 @@ function getOrderedReportIDs(
const isExpenseReportWithoutParentAccess = ReportUtils.isExpenseReportWithoutParentAccess(report);
const shouldOverrideHidden =
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
hasValidDraftComment(report.reportID) || hasErrorsOtherThanFailedReceipt || isFocused || isSystemChat || report.isPinned || isExpenseReportWithoutParentAccess;
hasValidDraftComment(report.reportID) ||
hasErrorsOtherThanFailedReceipt ||
isFocused ||
isSystemChat ||
report.isPinned ||
isExpenseReportWithoutParentAccess ||

Check failure on line 144 in src/libs/SidebarUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator

Check failure on line 144 in src/libs/SidebarUtils.ts

View workflow job for this annotation

GitHub Actions / ESLint check

Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator

Check failure on line 144 in src/libs/SidebarUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator

Check failure on line 144 in src/libs/SidebarUtils.ts

View workflow job for this annotation

GitHub Actions / ESLint check

Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
(ReportUtils.isUnread(report) && isInFocusMode);
if (isHidden && !shouldOverrideHidden) {
return;
}
Expand Down

0 comments on commit e31e6f6

Please sign in to comment.