Skip to content

Commit

Permalink
Merge pull request #27499 from s-alves10/fix/issue-25727
Browse files Browse the repository at this point in the history
fix: empty checking of report
  • Loading branch information
danieldoglas authored Sep 19, 2023
2 parents 7d5f422 + 3e5ece4 commit dc82b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2846,7 +2846,7 @@ function shouldReportBeInOptionList(report, currentReportId, isInGSDMode, betas,
}

const lastVisibleMessage = ReportActionsUtils.getLastVisibleMessage(report.reportID);
const isEmptyChat = !lastVisibleMessage.lastMessageText && !lastVisibleMessage.lastMessageTranslationKey;
const isEmptyChat = !report.lastMessageText && !report.lastMessageTranslationKey && !lastVisibleMessage.lastMessageText && !lastVisibleMessage.lastMessageTranslationKey;

// Hide only chat threads that haven't been commented on (other threads are actionable)
if (isChatThread(report) && isEmptyChat) {
Expand Down

0 comments on commit dc82b88

Please sign in to comment.