Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed May 14, 2024
1 parent b016e8e commit 401c2ce
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5054,11 +5054,6 @@ function hasViolations(reportID: string, transactionViolations: OnyxCollection<T
return transactions.some((transaction) => TransactionUtils.hasViolation(transaction.transactionID, transactionViolations));
}

function isEmptyChat(report: OnyxEntry<Report>) {
const lastVisibleMessage = ReportActionsUtils.getLastVisibleMessage(report?.reportID ?? '');
return !report?.lastMessageText && !report?.lastMessageTranslationKey && !lastVisibleMessage.lastMessageText && !lastVisibleMessage.lastMessageTranslationKey;
}

/**
* Takes several pieces of data from Onyx and evaluates if a report should be shown in the option list (either when searching
* for reports or the reports shown in the LHN).
Expand Down

0 comments on commit 401c2ce

Please sign in to comment.