Skip to content

Commit

Permalink
Simplify name for thread
Browse files Browse the repository at this point in the history
  • Loading branch information
zfurtak committed Jan 31, 2025
1 parent a4ba93c commit 55c9e7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4334,6 +4334,10 @@ function getReportName(
}

function getSearchReportName(props: GetReportNameParams): string {
const {report, policy} = props;
if (isChatThread(report) && policy?.name) {
return policy.name;
}
return getReportNameInternal(props);
}

Expand Down
3 changes: 3 additions & 0 deletions src/types/onyx/SearchResults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ type SearchReport = {

/** Whether the report has a child that is an outstanding expense that is awaiting action from the current user */
hasOutstandingChildRequest?: boolean;

/** Whether the user is not an admin of policyExpenseChat chat */
isOwnPolicyExpenseChat?: boolean;
};

/** Model of report action search result */
Expand Down

0 comments on commit 55c9e7e

Please sign in to comment.