From b26d6d2513a124bf3271aa3f84eb03c51a5d093b Mon Sep 17 00:00:00 2001 From: Joe Gambino Date: Wed, 14 Jul 2021 18:13:32 -0700 Subject: [PATCH] Don't show all chats in LHN in #focus mode --- src/libs/actions/Report.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index eb065395ac86..b7f52429555d 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -106,17 +106,17 @@ function getUnreadActionCount(report) { // Save the lastReadActionID locally so we can access this later lastReadSequenceNumbers[report.reportID] = lastReadSequenceNumber; - if (report.reportActionListLength === 0) { + if (report.reportActionCount === 0) { return 0; } if (!lastReadSequenceNumber) { - return report.reportActionListLength; + return report.reportActionCount; } // There are unread items if the last one the user has read is less // than the highest sequence number we have - const unreadActionCount = report.reportActionListLength - lastReadSequenceNumber; + const unreadActionCount = report.reportActionCount - lastReadSequenceNumber; return Math.max(0, unreadActionCount); }